They began in ancient Greece as an open pastry shell filled with meat and vegetables. Later, the Romans added a top crust, creating an actual pie version.