The render and the background should be on different layers.
There are many different ways to make it blend, such as smudging, changing colors, and many other possibilities.
Just try reading some tutorials. That's how we all learned, for the most part.