A bargain purchase occurs when an asset or a company is acquired for less than its fair market value, often due to financial distress or unique circumstances of the seller. This situation can result in immediate accounting gains for the buyer, as the acquired net assets exceed the purchase price paid.