Dunaliella viridis is a green microalga containing β-carotene, which is the precursor of astaxanthin, the most active antioxidant in Haematococcus pluvialis. Two key enzymes of H. pluvialis, β-carotene hydroxylase (CRTR-B) and β-carotenoid ketolase (BKT), are required for converting β-carotene to astaxanthin in D. viridis via the astaxanthin biosynthetic pathway. Considering the location of β-carotene in the chloroplast of D. viridis, the two modified genes encoding BKT and CRTR-B in H. pluvialis were integrated via homologous recombination into the chloroplast genome, in this study. In the chloroplast, the homologous recombination vector pMD-bkt-crtr (16S-TrnA-atpA-bkt-crtR-B-rbcL-psbA-bar-TrnI-23S), bkt and crtR-B were regulated by the atpA promoter in a polycistron. The presence of astaxanthin in the D. viridis mutant expressing BKT and CRTR-B was verified using high performance liquid chromatography (HPLC), and the maximum content of total astaxanthin and canthaxanthin after high light induction were 77.5 ± 7.7 and 50.1 ± 0.8 μg g −1 in dry weight, respectively. Our results indicate that D. viridis can be used as a cell factory for astaxanthin production.