Ah, the tragicomedy. You'll laugh, you'll cry, you'll eat a whole bag of popcorn.
Tragicomedy is a mixed genre that blends tragic and comic conventions. We see it most in drama, but it pops up in novels, too.
Like just about everything else in literature it seems, the tragicomedy tradition has its roots in the Classical period. But it really took flight in the Renaissance. Even Shakespeare wrote a few tragicomedies in his day.
Later in the 17th and 18th centuries, tragicomedies referred to plays with high tragic plot about noble characters coupled with low comic plots involving marriage, like in John Dryden's Marriage a la Mode.