It is called en passant.
https://www.chess.com/terms/en-passant
Pawn Take

After seeing this question asked dozens of times in a few weeks, I began to wonder.
So I went to google.com, I wrote in "weird chess capture", and there you have it. Amazing.
It is certainly much-much faster than opening a new topic and typing in the whole story and posting a game.
Hey all, probably dumb question but I am confused why this black pawn on g4 takes white pawn on h4. Move #42