A capsule for preparing a beverage and connectable to a machine for supplying sanitized liquid to the capsule is disclosed. The capsule includes a product compartment and a spout that includes a housing and a fluid connector adapted to be fluidly connected to the machine and to supply liquid inside the product compartment.