Ireland once had its own indigenous legal system, called Brehon law, originally written between the 7th and 8th centuries.