What does ‘Sod’s law’ mean?

Sod’s law — when something can go wrong, it will, owing largely to Sod’s law.