Like similar cities of that era, Sri Jayawardenepura was built with security in mind. A rampart and moat protected the entire city. Traces of this moat and rampart are still visible today at certain places. Along parts of the rampart, encroachers have now built houses, garages and even toilets.