The present application relates to a method of preparing a bile acid derivative or a pharmaceutical acceptable salt, solvate, or amino acid conjugate thereof, comprising direct alkylation of a carbon atom at the C-6 position of 7 keto lithocholic acid (KLCA) with an alkylating agent and reduction of a keto group at the C-7 position.