Madog ap Llywelyn, or Prince Madoc, was from a junior branch of the House of Aberffraw and a distant relation of Llywelyn ap Gruffudd, the last recognised native Prince of Wales.