Weight loss surgery, also known as bariatric surgery, is considered when other weight loss methods have not been successful, and the individual has severe obesity or obesity-related health complications. The decision to undergo surgery is made after a thorough evaluation by a healthcare professional specializing in bariatric surgery.