This is a survey article about Hall algebras and their applications to the study of motivic invariants of moduli spaces of coherent sheaves on Calabi-Yau threefolds. The ideas presented here are mostly due to Joyce, Kontsevich, Reineke, Soibelman and Toda.