We consider wetting of a complex geometry such as a porous rock on the pore scale. We find that for both the roughness of the pore walls and the pore geometry, some important mechanisms potentially relevant for oil rceovery can be understood on the basis of surprisingly simple concepts.