"How a Sewing Machine Works, Explained in a GIF". From the article:
Beneath the needle (as the GIF shows at a very slowed down speed) a hook
rotates, capturing the thread from above and looping it around another
thread, this one reeling from the bobbin below. The two threads
interlock around the layers of fabric, binding them to one another.