TCP Keepalive

What problem does TCP keepalive solve?