St. Peter's Square, the basilica and obelisk, from Piazza Pio XII
When the Lateran Treaty of 1929 that gave the state its form was being prepared, the boundaries of the proposed territory were influenced by the fact that much of it was all but enclosed by this loop. For some tracts of the frontier, there was no wall, but the line of certain buildings supplied part of the boundary, and for a small part of the frontier a modern wall was constructed.
The territory includes St. Peter's Square, distinguished from the territory of Italy only by a white line along the limit of the square, where it touches Piazza Pio XII. St. Peter's Square is reached through the Via della Conciliazione which runs from close to the Tiber River to St. Peter's. This grand approach was constructed by Benito Mussolini after the conclusion of the Lateran Treaty.
According to the Lateran Treaty, certain properties of the Holy See that are located in Italian territory, most notably the Papal Palace of Castel Gandolfo and the major basilicas, enjoy extraterritorial status similar to that of foreign embassies. These properties, scattered all over Rome and Italy, house essential offices and institutions necessary to the character and mission of the Holy See.
Map of Vatican City, highlighting notable buildings and the Vatican gardens.
Castel Gandolfo and the named basilicas are patrolled internally by police agents of Vatican City State and not by Italian police. According to the Lateran Treaty (Art. 3) St. Peter's Square, up to but not including the steps leading to the basilica, is normally patrolled by the Italian police.
There are no passport controls for visitors entering Vatican City from the surrounding Italian territory. There is free public access to Saint Peter's Square and Basilica and, on the occasion of papal general audiences, to the hall in which they are held. For these audiences and for major ceremonies in Saint Peter's Basilica and Square, tickets free of charge must be obtained beforehand. The Vatican Museums, incorporating the Sistine Chapel, usually charge an entrance fee. There is no general public access to the gardens, but guided tours for small groups can be arranged to the gardens and excavations under the basilica. Other places are open to only those individuals who have business to transact there.
(source)