quaternions were invented by Sir William Rowan Hamilton
He was a very eminent Irish mathematician & physicist who decided that the everyday imaginary numbers we did at school just weren't imaginary enough so he came up with quaternions which are even more imaginary. Apparently when he suddenly realised the secret ingredient needed to make them work whilst on an evening walk he carved it into the stone of a canal bridge in Dublin.
After googling, found that the commemorative plaque on the bridge says this
Here as he walked by
on the 16th of October 1843
Sir William Rowan Hamilton
in a flash of genius discovered
the fundamental formula for
quaternion multiplication
i² = j² = k² = ijk = −1
& cut it on a stone of this bridge