A British Airways jetliner crashed into a building Sunday near a runway at the international airport in Johannesburg, South Africa, but no one was injured, officials said.

The Boeing 747 was trying to take off from O.R. Tambo International Airport en route to London when one of its wings sliced into the two-story brick building.

All 182 passengers on board the plane disembarked safely, British Airways said.

Get Breaking News Delivered to Your Inbox

"A British Airways Boeing 747 was damaged while taxiing at Johannesburg airport," the airline said it an statement. "Customers disembarked safely and were looked after by our staff.

"We have launched a full investigation into the incident and are giving our assistance to the independent South African Civil Aviation Authority (SACAA) with the matter,” the statement said.

Passengers were given hotel rooms for the night since the plane was damaged and could not fly.

Passenger Harriet Tolputt, head of media for Oxfam, was on the flight when the accident occurred.

"BA plane crashes into building at J Burg airport. No one injured only the pilot’s pride. Not impressed that first class passengers get off before premium economy during an emergency," she tweeted.