Fastings

Why does God ask us to fast and what are its benefits?