The technology of image retrieval on compression domain was researched. Each image in the database was compressed by fractal coding and IFS fractal code was got. Based on the fractal code, the distance of query image and the image in the database was calculated using the distribution character of fractal code. Experiment results show that the algorithm presented is efficient in image retrieval based on IFS code.