Whilst the House of Lords of the United Kingdom is the upper chamber of Parliament and has government ministers, it for many centuries had a judicial function. It functioned as a court of first instance for the trials of peers, for impeachments, and as a court of last resort in the United Kingdom and prior, the Kingdom of Great Britain and the Kingdom of England.