LONDON — The British economy shrank in the second quarter, its first contraction in more than six years, as uncertainty over Brexit and slowing global growth took a toll.

The economy fell 0.2 percent in the three-month period ending in June, the Office of National Statistics said on Friday. The drop ends a string of 25 quarters of economic growth in Britain. Analysts had predicted growth to be unchanged from the first quarter.

The British pound, which has been slumping for months, lurched further after the report was released, falling a fraction below $1.21.

The economic slowdown occurred across Britain’s manufacturing, construction and agriculture sectors. Only the services sector showed a small uptick, according to the statistics agency.