The first half of the 20th century saw the UK 's strength seriously depleted in two world wars and the Irish republic withdraw from the union .