Duffy’s Tavern & Grill has purchased the Old Orchard Beach restaurant building in which it operates, along with two adjacent structures, for $1.7 million.

Duffy’s, which also operates a restaurant in Kennebunk, closed on the restaurant property at 168 Saco Ave. on Wednesday, according to Mark Sandler of Cardente Real Estate, who brokered the transaction.

The sale included the 11,750-square-foot restaurant, formerly known as The Captain’s Galley, a two-unit, 1,900-square-foot apartment building and a 2,550-square-foot home, all sitting on about 5.2 acres, according to a Cardente news release.

Duffy’s intends to continue operating the restaurant, which it had been leasing from the sellers, Michael and Gregory Mezoian, prior to the sale.

The restaurant’s owner, David “Duffy” Cluff, intends to rent out the home and the two-unit building, according to company Vice President Chris Cluff.