An explanation of slow sync flash (or 2nd curtain sync flash)

I’d always wondered why my flash went off twice – now I know why.