A complex web of litigation involving simultaneous foreclosures by a homeowners’ association and two national mortgage lenders squeezed a real estate investor out of what initially seemed like a lucrative deal.

It also reiterated the precarious situation of investors who purchase property caught in the crosshairs of two opposing interests—associations and lenders wrestling to collect debts from delinquent homeowners.