Hi,
From the picture it appears that your wisdom tooth was decayed and the surrounding gum has grown into the decayed space. Finally the crown of the tooth broke and the inflammed underneath gum is seen.
Next Steps
The root of the tooth is still inside and needs to be removed to prevent future problems.
Health Tips
Meanwhile you can rinse with warm salt water for a few times a day to reduce the inflammation