Normally, playing a land can only be done as a sorcery, but the madness trigger circumvents that timing restriction, allowing you to play the land even if it’s not your main phase and even if the stack is not empty. However, you can still only play a land during your turn and only if you have an available land play remaining.