<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
  <headerData>
    <submissionType>144</submissionType>
    <filerInfo>
      <filer>
        <filerCredentials>
          <cik>0001340707</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0001172052</issuerCik>
      <issuerName>SAFETY INSURANCE GROUP INC</issuerName>
      <secFileNumber>000-50070</secFileNumber>
      <issuerAddress>
        <com:street1>20 CUSTOM HOUSE STREET</com:street1>
        <com:city>BOSTON</com:city>
        <com:stateOrCountry>MA</com:stateOrCountry>
        <com:zipCode>02110</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>617-951-0600</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Berry James</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Fidelity Brokerage Services LLC</name>
        <address>
          <com:street1>900 Salem Street</com:street1>
          <com:city>Smithfield</com:city>
          <com:stateOrCountry>RI</com:stateOrCountry>
          <com:zipCode>02917</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>796</noOfUnitsSold>
      <aggregateMarketValue>63680.00</aggregateMarketValue>
      <noOfUnitsOutstanding>14800434</noOfUnitsOutstanding>
      <approxSaleDate>03/01/2023</approxSaleDate>
      <securitiesExchangeName>NASDAQ</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>02/26/2023</acquiredDate>
      <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>796</amountOfSecuritiesAcquired>
      <paymentDate>02/26/2023</paymentDate>
      <natureOfPayment>Compensation</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <securitiesSoldInPast3Months>
      <sellerDetails>
        <name>James Berry</name>
        <address>
          <com:street1>20 Custom House Street</com:street1>
          <com:city>Boston</com:city>
          <com:stateOrCountry>MA</com:stateOrCountry>
          <com:zipCode>02110</com:zipCode>
        </address>
      </sellerDetails>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <saleDate>02/24/2023</saleDate>
      <amountOfSecuritiesSold>556</amountOfSecuritiesSold>
      <grossProceeds>44207.56</grossProceeds>
    </securitiesSoldInPast3Months>
    <securitiesSoldInPast3Months>
      <sellerDetails>
        <name>James Berry</name>
        <address>
          <com:street1>20 Custom House Street</com:street1>
          <com:city>Boston</com:city>
          <com:stateOrCountry>MA</com:stateOrCountry>
          <com:zipCode>02110</com:zipCode>
        </address>
      </sellerDetails>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <saleDate>02/27/2023</saleDate>
      <amountOfSecuritiesSold>596</amountOfSecuritiesSold>
      <grossProceeds>48454.80</grossProceeds>
    </securitiesSoldInPast3Months>
    <noticeSignature>
      <noticeDate>03/01/2023</noticeDate>
      <planAdoptionDates>
        <planAdoptionDate>12/20/2022</planAdoptionDate>
      </planAdoptionDates>
      <signature>/s/ Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for  James  Berry</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4097}]
144
0001340707
XXXXXXXX
LIVE
0001172052
SAFETY INSURANCE GROUP INC
000-50070
20 CUSTOM HOUSE STREET
BOSTON
MA
02110
617-951-0600
Berry James
Officer
Common
Fidelity Brokerage Services LLC
900 Salem Street
Smithfield
RI
02917
796
63680.00
14800434
03/01/2023
NASDAQ
Common
02/26/2023
Restricted Stock Vesting
Issuer
N
796
02/26/2023
Compensation
N
James Berry
20 Custom House Street
Boston
MA
02110
Common
02/24/2023
556
44207.56
James Berry
20 Custom House Street
Boston
MA
02110
Common
02/27/2023
596
48454.80
03/01/2023
12/20/2022
/s/ Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for  James  Berry