At Temple Bar, the Corporation of the City of London formerly erected a barrier to regulate trade into the City. The 19th century Royal Courts of Justice are located next to it on its north side, having been moved from Westminster Hall. To its south is the Temple Church, along with the Inner Temple and Middle Temple Inns of Court. As the most important entrance to the City of London from Westminster, it was formerly long the custom for the monarch to halt at Temple Bar before entering the City of London, in order for the Lord Mayor to offer the Corporation's pearl-encrusted Sword of State as a token of loyalty.