A man was charged with two felonies after he allegedly tried to set fire to an occupied camper on Monday night in Hartsburg.