How to fight against steganalysis effectively has become an important research of information hiding.This paper proposed an image spatial information hiding algorithm against JPEG compression and steganalysis.In the algorithm,firstly the carrier image and the secret image were scrambled respectively,and then the carrier image was divided into sub-blocks,lastly one bit information was embedded into every sub-block.For extracting,the steganographic image was recovered and divided into sub-blocks.Then one bit information was obtained from every sub-block by the majority principle.Experiments have shown that the algorithm can not only resist information estimate method and is also robust against JPEG compression.