A pioneering spacecraft belonging to the United States military is reported to have landed in Florida after completing a secret mission circling earth that lasted almost two years.

The experimental X-37B space plane caused a sonic boom that surprised residents along the Florida coastline as it prepared to touch down at the Shuttle Landing Facility at NASA's Kennedy Space Centre this week.

Residents tweeted shocked reactions as the sky cracked loudly in the early hours of Sunday morning.