Irreversible inhibitors of K-Ras, H-Ras or N-ras protein comprising a G12C mutation are provided. Also disclosed are methods to regulate the activity of K-Ras, H-Ras or N-ras protein comprising G12C mutation and methods to disease mediated by K-Ras, H-Ras or N-ras G12C.