Sometimes, airlines join groups (called alliances) which all agree to sell each other's tickets. For example, both United Airlines and Lufthansa are part of Star Alliance. This means that Lufthansa can sell tickets for United Airlines and United Airlines can sell Lufthansa's tickets.