In this course, we cover some advanced topics on the theory of Markov chains, with applications in algorithmic counting and sampling. The topics include more standard techniques, like canonical paths, to very recent research topics such as spectral independence and stochastic localization.