Temple Bar was the principal ceremonial entrance to the City of London from the City of Westminster. In the Middle Ages, London expanded city jurisdiction beyond its walls to gates, called 'bars', which were erected across thoroughfares. To the west of the City of London, the bar was located adjacent to the area known as the Temple. Temple Bar was situated on the historic royal ceremonial route from the Palace of the Tower of London to the old Palace of Westminster, the two chief residences of the medieval English monarchs, and from Westminster to St Paul's Cathedral. The road east of the bar within the city was Fleet Street, while the road to the west, in Westminster, was The Strand.
At the bar, the Corporation of the City of London erected a barrier to regulate trade into the city. The 19th century Royal Courts of Justice are located to its north, having been moved from Westminster Hall. To its south is 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 the 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.