CUPERTINO — Apple paid just over $166.9 million to buy a three-building campus near its Cupertino headquarters, according to documents filed on Tuesday with the Santa Clara County recorder’s office.

Further cementing its decadeslong presence in its hometown, Apple bought the buildings, known as Cupertino Gateway, in an all-cash deal, county records show. The company had already been leasing the buildings from a real estate company that sold the property.

The three-building complex at 10200 N. Tantau Ave. totals roughly 220,700 square feet.

An affiliate controlled by PGIM, which manages real estate and other assets for Prudential Financial, sold the buildings, state and county business records show.

The estimated value of the three buildings was $197.5 million as of January 2024, according to information that is currently on file with the Santa Clara County assessor’s office.

In recent years, Apple has bought other office properties that it had been leasing in Cupertino, in a similar approach to the recent transaction.Among the other Apple purchases:

• A $450 million deal in 2021 to buy a five-building office complex with addresses on North De Anza Boulevard, Mariani Avenue and Valley Green Drive near Interstate 280.

• The acquisition of a 10-building campus known as Apple Results Way in 2023. Apple and the seller kept the price secret.

• The $70 million purchase of an office building at 10200 N. De Anza Blvd. in 2023. The deal represented a jaw-dropping 35% decline in the building’s value, suggesting Apple got the building for a discount.

In February, Apple sold an office building in north San Jose to Samsung for $27 million.