Ally MacKinnon scored a stoppage time equaliser to earn Lowland League Spartans a Scottish Cup replay.
League Two Berwick Rangers edged ahead in the first half when Paul Willis drilled the ball into the top corner from outside the box.
Blair Henderson went close to adding to the visitors' lead as they dominated proceedings.
But MacKinnon bagged a leveller two minutes into injury time to ensure Spartans secured a fifth-round replay.
Spartans-v-Berwick_Rangers_sw1Spartans-v-Berwick_Rangers_sw2Spartans-v-Berwick_Rangers_sw3Spartans-v-Berwick_Rangers_sw4Spartans-v-Berwick_Rangers_sw5Spartans-v-Berwick_Rangers_sw6Spartans-v-Berwick_Rangers_sw7Spartans-v-Berwick_Rangers_sw8Spartans-v-Berwick_Rangers_sw9Spartans-v-Berwick_Rangers_sw10Spartans-v-Berwick_Rangers_sw11Spartans-v-Berwick_Rangers_sw12Spartans-v-Berwick_Rangers_sw13Spartans-v-Berwick_Rangers_sw14Spartans-v-Berwick_Rangers_sw15Spartans-v-Berwick_Rangers_sw16Spartans-v-Berwick_Rangers_sw17Spartans-v-Berwick_Rangers_sw18Spartans-v-Berwick_Rangers_sw19Spartans-v-Berwick_Rangers_sw20