APPLETON, Maine — A house that has been at the center of a six-year legal battle is in the process of being moved.

On Tuesday, crews with Chase Building Movers Inc. of Wells removed the walls of the lower-level garage of the 2½-story structure that had been built on the 0.18-acre village center lot. They then moved those walls to land that owner Jacob Boyington has about a mile away on Appleton Ridge Road.

The remaining section — the 1½-story living quarters — will be moved by the middle of next week, Boyington said Wednesday.

The Appleton man estimated that the house, which he has been renting out, will be ready for occupancy again in about a month.

Boyington estimates he has spent well in excess of $30,000 on legal fees and moving expenses.

“I have never done anything out of compliance,” Boyington said, pointing out that he continued to build the house, even after neighbors challenged the construction, on the advice of the former town code enforcement officer.

He said he is moving the building now to continue to be in compliance with the town ordinances.

The saga of the house began in 2009, when Boyington purchased the tax-acquired lot from the town through a public bid process. The next year, Boyington, through his company Appleton Ridge Construction LLC, obtained a building permit from the town to construct a two-bedroom rental house. He tore down a dilapidated building on the lot.

The abutting neighbors immediately challenged the permit, arguing that under local ordinances the lot was too small for the building and that the structure would be too near the road. The house was 15 feet from the side of the road, while the town ordinance required 25 feet.

The house is a 2½-story structure with a 24-by-32-foot footprint.

Boyington said the house was farther back from the road than the former structure.

The moving of the house follows the June 9 rejection by voters at town referendum of a proposed consent agreement that would have allowed the house to remain if Boyington paid a $2,500 penalty. Voters rejected that referendum, 284-80.

Before the vote, the issue had wound its way through the courts until Justice Jeffrey Hjelm ordered the town in February 2011 to rescind the building permit. He later ruled in May 2014 that the town’s zoning board of appeals also erred in granting a zoning variance.

The town filed a land use complaint against Boyington at the end of February to ensure he would comply in removing the house. A hearing on that complaint still is scheduled to be heard July 29 in Knox County Unified Court in Rockland.

A telephone message for town attorney Jeremy Marden was not returned Wednesday to see what, if any, penalty the town was seeking.