Who invented the first cake and when?

There is evidence suggesting that early forms of cakes may have existed as early as the ancient Egyptian era circa 2000 B.C.E., while some sources trace the first "true" cakes to medieval Europe during the middle ages (between the 6th and 14th centuries). However, it is challenging to precisely identify a single inventor or a clear date of origin as different civilizations and cultures have had variations of baked sweet goods throughout history. The concept of the first "cake" likely evolved over time through experimentation and cultural exchanges.