Spanish kings lived there until 1931 when King Alfonso XIII was forced to leave Spain. The Royal Palace is still used for special ceremonies. Letizia was supposed to walk on a red carpet from the Royal Palace to the cathedral for the wedding with Prince Felipe but it rained so she was taken in car.