The End of History and the Last Man as a title comes from both Hegel (first part) and Nietzsche (last part), thus why he insists history cannot be understood in purely materialist terms (ideas trump interests etc)
Kirsch, A. (2014). Francis Fukuyama and the Beginning of History. In Kirsch, A. Rocket and Lightship: Essays on Literature and Ideas. W. W. Norton Company, pp. 51-64