Republic, a pressure group campaigning for the abolition of the monarchy, said the two royal offices should be “cast off and Parliament moved into the 21st century”.

“These positions are a nonsense, yet they confer status and access to two men who have done nothing but be born into the right families,” said Graham Smith, the CEO of Republic.

“Parliament belongs to the British people, it should reflect the British people, our interests, values and culture. Not some facsimile of medieval pageantry that hasn’t played a serious role for centuries.”

But Lord Roberts, a historian, has argued the Earl Marshal and the Lord Great Chamberlain should be allowed to keep their hereditary seats in the Lords.

In a debate, Lord Roberts said “these two noble Lords undertake totally different roles on behalf of the Crown and state from any other of the hereditary peers”.

“The point about the Earl Marshal and the Lord Great Chamberlain is that they are both dignified and efficient,” Lord Roberts said.

“To spare them from the exigencies of the bill should be done on the grounds that membership of this House would allow them to maintain more easily the contacts that help them perform their duties.”

The role of Earl Marshal dates from medieval times and has responsibility for arranging state ceremonies, including coronations, state funerals and the state opening of Parliament.

It has been held by hereditary right by the Howard family since 1672 and the current holder is Edward Fitzalan-Howard, the 18th Duke of Norfolk, who inherited the position from his father in June 2002.

The Lord Great Chamberlain controls the parts of the Palace of Westminster reserved for the monarchy and manages the royal family’s interests in Parliament.

The role was first created in the 12th century and Lord Carrington – the son of a former Conservative cabinet minister – has held the office since King Charles ascended to the throne in 2022.

Lord Carrington became a hereditary member of the Lords in 2018, after winning a by-election to replace a retired peer.

The Earl Marshal and the Lord Great Chamberlain were exempted from the removal of most hereditary peers under the previous Labour government’s reforms in 1999, allowing them to keep their right to sit and vote in the Lords.

The remaining 92 hereditary seats in the Lords will be abolished at the end of the parliamentary session, expected in April or May.