The end is usually considered to have been the Suez crisis; after exiting India, the UK failed to invade a Middle Eastern country in order to control a narrow waterway. If you want parallels to the present.
Brexit is a particularly 21st century phenomenon, a failed attempt to retreat to autarky.