Three years later, in 1812, Castlereagh returned to the government, this time as Foreign Secretary, a role in which he served for the next ten years. He also became leader of the House of Commons in the wake of Spencer Perceval's assassination in 1812.