Preah Khan, considered one of Jayavarman VII's most ambitious projects, was the site not just of a temple but of an entire city and, so it is believed, of a university with over a thousand teachers. The entire city, dating from the late 12th century, was enclosed within a wall and a moat.