Fabric is a Python library and command-line tool for automating system administration tasks like application deployment over SSH. It allows executing shell commands on remote servers, uploading/downloading files, prompting for input, and aborting execution. Commands can target multiple hosts specified in a fabfile.py, and take per-task arguments. Context managers like cd and settings allow grouping related commands together.