Economists had expected higher energy prices to push the rate up to 2.6%, but this was offset by falling prices for clothes and games.
"However, gas and electricity and petrol prices all rose, with consumers seeing the highest price at the pump for almost four years, with inflation remaining steady overall".
The ONS's preferred measure of inflation which includes housing costs, CPIH, also remained steady, at an annual rate of 2.3 per cent.
Fed Chairman Jerome Powell gave an upbeat assessment of the outlook for the USA economy on Tuesday and downplayed the impact of uncertainty over US trade policy on the outlook for additional rate hikes.
Drogba reveals player that should win Ballon D'Or prize
France dictated the pace of the game with Griezmann's speed troubling the plucky Croats. Coach Zlatko Dalic said his players should be proud of their achievements.
Today's data raises the prospect of the Bank of England raising interest rates at a time when inflation has stagnated, wage growth remains tepid, the United Kingdom faces political chaos at home, and the prospect of a damaging trade war hangs over the global economy. "The large downside surprise adds more uncertainty around what had until now appeared a near-certain August rate hike", JPMorgan economist Allan Monks said.
Petrol prices are up 17.45 percent in June from 13.90 in May, while diesel prices grew 21.63 percent in June as compared to 17.34 percent in May.
Underlying inflation rose by 1.9% on a year-over-year basis, slowing from 2.1% in the previous month and missing forecasts of 2.2%.
But some relief emerged for consumers on the high street, where clothing discounts, most strongly felt in men's apparel, left more cash in shoppers' wallets.
A Reuters poll of economists published on Tuesday showed 47 out of 75 thought the BoE would raise rates to a new post-financial crisis high of 0.75 per cent in August.
Tesla 'whistleblower' files tip with the SEC (TSLA)
The law granting that credit triggers a drawdown when a company passes 200,000 electric vehicle sales, which Tesla did this month. Those tariffs raised the price on Tesla Model S to USD142,000 from about USD115,000, according to 24-7 Wall Street.
On a related note, the latest price data released by the commerce and industry ministry shows the Wholesale Price Index (WPI) witnessing a growth of 4.43 percent in May and 0.90 percent in June 2017 primarily driven by some food items and fuel prices.
The Bank has raised interest rates before in the past even when inflation has been below its two per cent target, in the expectation that inflationary pressures will build over the medium term.
The Retail Prices Index, a separate measure of inflation, was 3.4 per cent last month, up from 3.3 per cent in May. The worst-performing region was London, where prices fell 0.4 percent as Brexit fears and stretched affordability sapped demand.
House prices also increased the slowest in five years according to the ONS, with flat prices staying the same for a year.
70 killed, 120 hurt in Pakistan election campaign bombing
He was the former chief minister of Khyber Pakhtunkhwa , the restive province in northwest Pakistan that borders Afghanistan. Mr Khan condemned the attack on his rival, tweeting: "Strongly condemn the terrorist attack on Akram Durrani & his convoy".