A north Queensland man has been bitten by a metre-long snake curled up under a pillow on his bed.

The Trinity Beach resident was going to sleep on Friday night when he slid his hand under the covers, only to get the fright of his life.

The Trinity Beach resident was bitten by a spotted python. Credit:Facebook

Cairns snake catcher Matt Hagan was called to remove the 1.2-metre reptile and comfort the man and his wife, who had been rattled by his screams.

"His wife was in the lounge room at the time and said he was making some noises that weren't very compatible with sleep," Mr Hagan said.