Magento is built on top of Zend Framework, a famous PHP framework that easily allows people to create their comprehensive software packages.
Magento itself is a PHP-based solution and generally uses MySQL for database management.