Masa is made from corn cooked with lime (calcium hydroxide), a process called nixtamalisation that makes the corn more nutritious and lets it form a dough.
Ancient food science.