Windsor Castle is located in the town of Windsor, in the English county of Berkshire, England. It is about 25 miles (40 kilometers) west of central London, situated on the south bank of the River Thames. The castle stands on a ridge at the northeastern edge of the district of Windsor and Maidenhead. It is part of one of the official residences of the British monarch and is known as the longest-occupied palace in Europe.