After giving an exhaustive introduction into modern cosmology, I will summarise the theoretical and observational challenges that we are facing in the standard model of cosmology. I will then introduce different ideas proposed in the literature to tackle these problems within modified gravity theories, among which I will pay special attention to theories based on affine structure, massive gravity, scalar-tensor theories and generalised Proca theories.