Short answer: Keep your distance, bring children and pets indoors and call a qualified local removal professional. Do not try to move or kill the snake yourself.
Right now: create distance
Watch only from a safe distance if you can do so without approaching. Do not use a shovel, hose, spray or homemade trap. If someone is bitten, call 911; do not cut the wound, ice it, use a tourniquet or try to remove venom.
After it is gone: find the route
Note where it was first seen. Later, inspect for gate gaps, drains, wall openings, view-fence transitions, gaps under sheds and protected hiding spots.
Make the yard less attractive
Remove brush and debris piles, keep pet food inside, address rodent activity and trim dense vegetation around key fence lines. These steps reduce shelter and prey but cannot guarantee zero encounters.
Common questions
Should I try to move a rattlesnake?
No. Keep distance and call a qualified local professional.
Does one rattlesnake mean there are more?
Not necessarily. It is still a good reason to inspect routes and habitat conditions.