A trade surplus occurs when a country's exports exceed its imports, indicating a net inflow of foreign currency and potentially strengthening the nation's economy. It can signal economic strength but may also lead to trade tensions with countries experiencing trade deficits with it.