From Middle English haha, ha ha, from Old English ha ha (interjection), ultimately onomatopoeic. Compare Old Frisian haha (interjection), Middle Low German hahā, hahahā (interjection), Middle High German hahā, haha (interjection), all expressions of joy or of laughter.