The official house of the Lord Lieutenant was the Viceregal Apartments in Dublin Castle. This was also where the Viceregal Court was based. When the Lord Lieutenant had to live in Ireland full time, this had to change. In 1781 the British government bought the former ranger's house in Phoenix Park. It was named the Viceregal Lodge. It is now known as Áras an Uachtaráin. It is the residence of the President of Ireland.