Palantir Technologies Inc.’s chief executive Alex Karp bought a Miami mansion in June, seven months before the firm’s surprise announcement to move its headquarters to the city, according to a person familiar with the matter.

Public records show the property, located in Miami Beach on a man-made island, was purchased for $46 million by Hibiscus East LLC which listed New Hampshire lawyer Patrick Collins as the representative. Collins has been linked to Karp in other real estate transactions and the Palantir executive owns property in New Hampshire.