A trigger finger occurs when the flexor tendon sheath in the finger becomes inflamed or constricted, making it difficult to straighten or bend the affected finger smoothly. It can result from repetitive gripping motions, arthritis, or underlying medical conditions.