A brewing device for a beverage preparation machine, characterized by comprising: a first mounting plate; a second mounting plate; a fixing assembly, fixed between the first mounting plate and the second mounting plate, the fixing assembly comprising a fixing member and the fixing member defining a receiving chamber configured to receive a beverage package; a sliding member, mounted between the first mounting plate and the second mounting plate, the sliding member being slidable relative to the fixing member, the sliding member defining a first connecting hole; a driving assembly, connected to the first mounting plate and the second mounting plate, and the sliding member respectively, and configured to drive the sliding member to slide; a locking member, comprising a main portion and a first connecting bar, and a first elastic sheet; wherein the main portion is provided with a groove configured to lock the beverage package, one end of the first connecting bar is fixed to the main portion, one end of the first elastic sheet is fixedly connected to the first connecting bar and the other end of the first elastic sheet is suspended in the air, the other end of the first elastic sheet is provided with a first block and a second block, and the first connecting bar and the first elastic sheet pass through the first connecting hole; when the brewing device is in a first position state, the first connecting hole is positioned between the first block and the second block, a spacing is defined between the main portion and the sliding member, and a spacing is defined between the main portion and the fixing member; when the brewing device is in a second position state, the first connecting hole is positioned between the first block and the second block, a spacing is defined between the main portion and the sliding member, and the main portion abuts against the fixing member; and when the brewing device is in the third position state, the first connecting hole is positioned between the first block and the main portion, the main portion abuts against the sliding member, and the main portion abuts against the fixing member. a first mounting plate; a second mounting plate; a fixing assembly, fixed between the first mounting plate and the second mounting plate, the fixing assembly comprising a fixing member and the fixing member defining a receiving chamber configured to receive a beverage package; a sliding member, mounted between the first mounting plate and the second mounting plate, the sliding member being slidable relative to the fixing member, the sliding member defining a first connecting hole; a driving assembly, connected to the first mounting plate and the second mounting plate, and the sliding member respectively, and configured to drive the sliding member to slide; a locking member, comprising a main portion and a first connecting bar, and a first elastic sheet; wherein the main portion is provided with a groove configured to lock the beverage package, one end of the first connecting bar is fixed to the main portion, one end of the first elastic sheet is fixedly connected to the first connecting bar and the other end of the first elastic sheet is suspended in the air, the other end of the first elastic sheet is provided with a first block and a second block, and the first connecting bar and the first elastic sheet pass through the first connecting hole; when the brewing device is in a first position state, the first connecting hole is positioned between the first block and the second block, a spacing is defined between the main portion and the sliding member, and a spacing is defined between the main portion and the fixing member; when the brewing device is in a second position state, the first connecting hole is positioned between the first block and the second block, a spacing is defined between the main portion and the sliding member, and the main portion abuts against the fixing member; and when the brewing device is in the third position state, the first connecting hole is positioned between the first block and the main portion, the main portion abuts against the sliding member, and the main portion abuts against the fixing member.