Astronomer royal is a senior post in the Royal Households of the United Kingdom. There are two officers, the senior being the astronomer royal dating from 22 June 1675; the junior is the astronomer royal for Scotland dating from 1834.
The post was created by King Charles II in 1675, at the same time as he founded the Royal Observatory, Greenwich. He appointed John Flamsteed, instructing him "forthwith to apply himself with the most exact care and diligence to the rectifying the tables of the motions of the heavens, and the places of the fixed stars, so as to find out the so-much desired longitude of places, for the perfecting the art of navigation."
The astronomer royal was director of the Royal Observatory, Greenwich from the establishment of the post in 1675 until 1972. The astronomer royal became an honorary title in 1972 without executive responsibilities, and a separate post of director of the Royal Greenwich Observatory was created to manage the institution.
The astronomer royal today receives a stipend of 100 GBP per year and is a member of the royal household, under the general authority of the Lord Chamberlain. After the separation of the two offices, the position of astronomer royal has been largely honorary, although the holder remains available to advise the Sovereign on astronomical and related scientific matters, and the office is of great prestige.
There was formerly a royal astronomer of Ireland, a post that seemingly ended with Irish independence.
The astronomer royal is mentioned in H. G. Wells' novel The War of the Worlds and in George Orwell's Down and Out in Paris and London. He also makes an appearance in the lyrics of Gilbert and Sullivan's The Pirates of Penzance and plays an important role in Fred Hoyle's novel The Black Cloud.