If you own a gun and have good aim, shoot the rattlesnake. This is the fastest way to kill the rattlesnake and poses the least amount of risk.
Sneak up behind the rattlesnake. Use an axe to chop off its head. The body will continue to move after you kill it.
Use a shovel to kill the rattlesnake. Come from behind the snake and quickly shove the end of the shovel into the neck of the rattlesnake. Make sure that you don't miss, or the snake will become more aggressive.
Club the rattlesnake. This can be dangerous if you get too close. The rattlesnake will try to bite in defense, so make sure the weapon you use to hit the snake is long enough to keep your distance from it. The rattlesnake can strike about two-thirds the length of its body. Give at least 5 feet between you and the snake.
Stay away from rattlesnakes. To avoid having to kill them, make sure your home is free of debris such as rocks and leaf piles. Keep your home clean and trim trees, shrubbery and grass. This will deter any chances of rattlesnakes finding your backyard a nice place to stay. If hiking, rattlesnakes may be seen and can be avoided by walking several feet away from them.