What EXACTLY is publishing?


So I’ve been trying to learn more about the contractual aspect of sales and although I hear a lot about producers saying that 100% of publishing should not be given up, I have NO CLUE what that means. Does that mean money from streams? I’m really confused and am not sure what would be fair for both the artist and myself. Thanks.