If you are solo mining it means you solved the block and won 25BTC plus transaction fees. If you're mining in a pool it means you solved a block for the pool and the pool gets 25BTC and fees and distributes them to the pool base.
Always wondered about the details on that. Thank you.