In pre-Christian Ireland legend the first ever hospital was Bhrionbherg (House of Sorrows), set up by Macha Mong Ruadh, a legendary Irish Queen, at Emain Macha (Navan Fort), an ancient ruler of the five Kingdoms of Tara and also the daughter of Áed Rúad. Other hospitals spread to all the other kingdoms; these institutes would later be carried on by monks, as parts of monasteries during the Christian times. Brehon law laid down a medical code of ethics on regulations and management for treatment of the sick and wounded, and also details of patient entitlements, compensations and fees.