Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYNTHESIS OF OBETICHOLIC ACID AND SYNTHESIS INTERMEDIATE
Document Type and Number:
WIPO Patent Application WO/2019/170521
Kind Code:
A1
Abstract:
The present invention relates to a new intermediate for the synthesis of obeticholic acid, the compound of formula (I) or a geometric isomer thereof, a process for obtaining the same, as well as the use of said intermediate in the synthesis of obeticholic acid.

Inventors:
BERNABEU MARTÍNEZ MARÍA DEL CARMEN (ES)
JIMÉNEZ ALONSO OSCAR (ES)
DOBARRO RODRÍGUEZ ALICIA (ES)
GABOARDI MAURO (IT)
CASTALDI GRAZIANO (IT)
Application Number:
PCT/EP2019/055033
Publication Date:
September 12, 2019
Filing Date:
February 28, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MOEHS IBERICA SL (ES)
International Classes:
C07J9/00
Foreign References:
CN107400154A2017-11-28
Other References:
SEPE V ET AL: "Conicasterol E, a small heterodimer partner sparing farnesoid X receptor modulator endowed with a pregnane X receptor agonistic activity, from the marine sponge Theonella swinhoei", JOURNAL OF MEDICINAL CHEMISTRY,, vol. 55, no. 1, 12 January 2012 (2012-01-12), pages 84 - 93, XP002711362, ISSN: 0022-2623, [retrieved on 20111129], DOI: 10.1021/JM201004P
Attorney, Agent or Firm:
ABG INTELLECTUAL PROPERTY LAW, S.L. (ES)
Download PDF:
Claims:
CLAIMS

1. A compound of formula (I) :

or a geometric isomer thereof.

2. Use of a compound of formula (I) or a geometric isomer thereof in a process for preparing obeticholic acid of formula (IV)

(IV) .

3. Use according to claim 2, wherein the process for preparing obeticholic acid of formula (IV) comprises the following steps :

(a) treating the compound of formula (I) or a geometric isomer thereof with a base and hydrogen, and in the presence of a catalyst, to yield a salt of the compound of formula (II)

(b) treating the salt of the compound of formula (II) with sodium borohydride to yield a salt of the compound of formula (III)

(HI) ;

(c) optionally treating the salt of the compound of formula (III) with an acid at a pH of 4 to 6 to yield the compound of formula (III);

(d) optionally treating the compound of formula (HI) obtained in step (c) with diethylamine to yield the diethylamine salt of compound (III); and

(e) treating the salt of the compound of formula (III) obtained in step (b) , the compound of formula (III) obtained in step (c) or the diethylamine salt of compound (III) obtained in step (d) , with an acid at a pH of 0 to 3.

Use according to claim 3, wherein the base of step (a) is sodium hydroxide .

Use according to any of claims 3 to 4, wherein in step (a) between 1.5 and 2.5 mol of base are used with respect to each mol of compound of formula (I) or a geometric isomer thereof.

6. Use according to claim 5, wherein in step (a) between 1.9 and 2.1 mol of base are used with respect to each mol of compound of formula (I) or a geometric isomer thereof.

7. Use according to any of claims 3 to 6, wherein step (a) is performed in the presence of a catalyst selected from the group consisting of palladium on carbon, palladium on calcium carbonate, and platinum oxide.

8. Use according to claim 7, wherein the catalyst of step (a) is palladium on carbon.

9. Use according to any of claims 3 to 8, wherein step (a) is performed at a temperature of between 35°C and 45°C.

10. Use according to any of claims 3 to 9, wherein step (a) is performed at a pressure of between 4.5 and 5.5 bar.

11. Use according to any of claims 3 to 10, wherein step (a) is performed in the presence of a solvent selected from a C1-C3 alcohol .

12. Use according to claim 11, wherein the C1-C3 alcohol is methanol .

13. Use according to any of claims 11 or 12, wherein between 5 and 15 ml of C1-C3 alcohol are used for each gram of compound of formula (I) or a geometric isomer thereof.

14. Use according to any of claims 3 to 13, wherein step (b) is performed in the presence of a solvent selected from the group consisting of C1-C3 alcohol, water, and mixtures thereof .

15. Use according to claim 14, the solvent is a mixture of methanol and water.

16. Use according to claim 15, wherein the solvent is a mixture of methanol and water at a ratio of between 4 and 6 volumes of methanol for each volume of water.

17. Use according to any of claims 14 to 16, wherein between 3.5 and 4.5 ml of solvent are used for each mmol of salt of the compound of formula (II) .

18. Use according to any of claims 3 to 17, wherein between 2 and 3.5 mol of sodium borohydride are used with respect to each mol of salt of compound of formula (II) .

19. Use according to any of claims 3 to 18, wherein step (b) is performed at a temperature of between 70°C and 90°C.

20. Use according to any of claims 3 to 19, wherein step (c) is performed.

21. Use according to any of claims 3 to 20, wherein step (d) is performed.

22. Use according to claim 21, wherein step (d) is carried out in a solvent selected from the group consisting of C1-C4 alkyl acetates, C1-C4 alcohols, ketones, water, and mixtures thereof, preferably ethyl acetate.

23. Use according to any of claims 21 or 22, wherein the diethylamine salt of compound (III) is purified by recrystallization.

24. Use according to any of claims 3 to 20, wherein step (d) is not performed.

25. Use according to any of claims 3 to 24, wherein the acid used in step (e) is hydrochloric acid.

26. Use according to any of claims 3 to 25, wherein step (e) is performed in the presence of a solvent selected from the group consisting of C1-C4 alkyl acetates, ketones, C1-C4 alcohols, cyclic or linear ethers, acetonitrile, and water, and mixtures thereof.

27. Use according to claim 26, wherein the solvent is selected from the group consisting of acetone, methanol, water and mixtures thereof, preferably a mixture of acetone and water or a mixture of methanol and water.

28. Use according to any of claims 3 to 27, wherein step (e) is performed at a temperature of between 15°C and 35°C.

29. A process for preparing a compound of formula (I) or a geometric isomer thereof, which process comprises treating a compound of formula (V) or a geometric isomer thereof with 3 , 4-dihydro-2H-pyran in the presence of an acid

30. The process according to claim 29, wherein the acid is camphorsulfonic acid.

31. The process according to any of claims 29 or 30, wherein between 0.04 and 0.06 mol of acid are used with respect to each mol of compound of formula (V) or a geometric isomer thereof .

32. The process according to any of claims 29 to 31, wherein between 1 and 3 mol of 3 , 4-dihydro-2H-pyran are used with respect to each mol of compound of formula (V) or a geometric isomer thereof.

33. The process according to any of claims 29 to 32, wherein treatment of the compound of formula (V) or a geometric isomer thereof is performed in the presence of a solvent selected from the group consisting of dichloromethane , tetrahydrofuran, and mixtures thereof.

34. The process according to claim 33, wherein the solvent is dichloromethane .

35. The process according to any of claims 33 or 34, wherein between 5 and 15 ml of solvent are used with respect to each gram of compound of formula (V) or a geometric isomer thereof .

36. The process according to any of claims 29 to 35, wherein the treatment of the compound of formula (V) or a geometric isomer thereof is performed at a temperature of between 15°C and 35°C.

37. The process according to any of claims 29 to 36, wherein the compound of formula (V) or a geometric isomer thereof is obtained by treatment of a compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether

(VI) .

38. The process according to claim 37, wherein the compound of formula (VI) is obtained by treatment of a compound of formula (VII) with chlorotrimethylsilane or trimethylsilyl trifluoromethanesulfonate in the presence of a base

(VII) .

39. The process according to claim 38, wherein the compound of formula (VII) is obtained by treatment of a compound of formula (VIII) with benzyl bromide in the presence of a base

(VIII) .

40. The process according to claim 39, wherein the compound of formula (VIII) is obtained by treatment of a compound of formula (IX) with sodium bromide and sodium hypochlorite

(IX) ·

Description:
SYNTHESIS OF OBETICHOLIC ACID AND SYNTHESIS INTERMEDIATE

Field of the Invention

The present invention relates to a new intermediate for the synthesis of obeticholic acid, the use of said intermediate in the synthesis of said obeticholic acid, as well as the process for obtaining this new intermediate.

Background of the Invention

Obeticholic acid (OCA), or 3a, 7a-dihydroxy- 6a-ethyl-5 b- cholan-24-oic acid or compound of formula (IV) in the present invention, is a 6a-ethylated derivative of bile chenodeoxycholic acid (CDCA) . The chemical structure of obeticholic acid is shown below .

Obeticholic acid is a farnesoid X receptor (FXR) ligand used in the treatment of primary biliary cholangitis and is under development for the treatment of other liver diseases.

Obeticholic acid and its process of synthesis are disclosed in document WO 02/072598 A1. The synthetic route comprises: the protection of the hydroxyl group at position 03 of 3a-hydroxy-7- keto-5 p-cholan-24-oic acid with a tetrahydropyranyl group to yield 3a-tetrahydropyranyloxy-7-keto-5 p-cholan-24-oic acid, alkylation of the carbon at position 06, and esterification of the carboxylic group with ethyl bromide and deprotection of the tetrahydropyranyl group to yield ethyl 3a-hydroxy-6a-ethyl-7- keto-5p-cholan-24-oate, reduction of the ketone group at position C7 to hydroxyl with sodium borohydride to yield ethyl 3a, 7a-dihydroxy-6a-ethyl-5p-cholan-24-oate, and finally deprotection of the ester group to yield obeticholic acid.

The problem with this synthetic route is the low yield (3%) , and that it furthermore involves multiple steps of purification by column chromatography, which hinders putting it into practice on an industrial scale.

Zampella et al . [J. Med. Chem., 2012, 55, 84-93] disclose another obeticholic acid synthesis route comprising the oxidation of chenodeoxycholic acid (CDCA) with a solution of sodium hypochlorite/NaBr and tetrabutylammonium bromide in a mixture of methanol/acetic acid/water/ethyl acetate as solvent, followed by benzylation of the carboxylic acid at position C24, to yield the benzyl ester of 7-ketolitocholic acid. Next, the silyl enol ether is generated followed by aldol addition with acetaldehyde in the presence of BF 3 OEt 2 to yield ethyl 3a- hydroxy-6a-ethylidene-7-keto-5p-cholan-24-oate . Then, selective reduction of ketone at position C7 with NaBIHU/CeCls in a mixture of THF/methanol and after that hydrogenation of the exocyclic double bond, together with the removal of the benzyl protecting group, are carried out to yield obeticholic acid.

The yield of this synthesis route is 32%. Despite having improved the yield, this synthetic route still involves various steps of purification by column chromatography, rendering it unsuitable for industrial implementation.

Document US 8338628 B2 discloses a process for obtaining obeticholic acid comprising the steps of oxidizing the hydroxyl at position C7 of CDCA to a ketone group with pyridinium chlorochromate , protection of the hydroxyl at position C3 with a tetrahydropyranyl group, alkylation of the carbon at position C6 with ethyl iodide and deprotection of the tetrahydropyranyl group, and finally reduction of the ketone group at position C7 to hydroxyl with sodium borohydride to yield obeticholic acid, as shown below.

Nevertheless, this synthetic route also includes several steps of purification by column chromatography, rendering it unsuitable for industrial implementation.

Document CN 107400154 A discloses the following process of synthesis for obtaining obeticholic acid, wherein R is C1-C6 alkyl :

In a manner similar to the preceding process, CN 106589039 A also discloses a process for synthesis of obeticholic acid in which intermediates having a methyl ester as protecting group of the carboxylic acid and/or a tetrahydropyranyl (THP) as protecting group of the hydroxyl at position C3 are used.

In these last two synthetic processes described in CN 107400154 A and CN 106589039 A, the intermediates obtained in each of the steps are isolated, which is a drawback for carrying out the process at industrial scale.

Therefore, there is a need in the state of the art for alternative processes for the synthesis of obeticholic acid which present improvements with respect to those already existing, for example improvements as regards the yield, purity, number of independent steps which involve isolating the obtained intermediates and/or the purity of obeticholic acid.

Summary of the Invention

The inventors have discovered a new process for synthesis of obeticholic acid which allows obtaining the precursor of obeticholic acid (compound of formula (III)) in a single reaction vessel and without the need to isolate synthesis intermediates. The inventors thereby reduce the number of independent steps which involve isolating the obtained intermediates as well as the corresponding steps of purification, achieving good yields and high purity. This process uses the compound of formula (I) as key intermediate:

Thus, in a first aspect the present invention relates to the compound of formula (I) or a geometric isomer thereof.

In a second aspect, the present invention relates to the use of a compound of formula (I) or a geometric isomer thereof in a process for preparing obeticholic acid, particularly wherein the process for preparing obeticholic acid of formula (IV) comprises the following steps:

(a) treating the compound of formula (I) or a geometric isomer thereof with a base and hydrogen, and in the presence of a catalyst, to yield a salt of the compound of formula (II)

(b) treating the salt of the compound of formula (II) with sodium borohydride to yield a salt of the compound of formula (III)

(HI) ;

(c) optionally treating the salt of the compound of formula (III) with an acid at a pH of between 4 and 6 to yield the compound of formula (III);

(d) optionally treating the compound of formula (III) obtained in step (c) with diethylamine to yield the diethylamine salt of compound (III); and

(e) treating the salt of the compound of formula (III) obtained in step (b) , the compound of formula (III) obtained in step (c) or the diethylamine salt of compound (III) obtained in step (d) , with an acid at a pH of between 0 and 3. In a third aspect, the present invention relates to a process for preparing a compound of formula (I) or a geometric isomer thereof, which process comprises treating a compound of formula (V) or a geometric isomer thereof with 3, 4-dihydro-2H- pyran in the presence of an acid.

Description of the Drawings

Figure 1 shows the x-ray powder diffraction (XRPD) pattern of the amorphous form of obeticholic acid obtained in Example

10.

Figure 2 shows the differential scanning calorimetry diagram of the amorphous form of obeticholic acid obtained in Example 10.

Figure 3 shows the differential scanning calorimetry diagram of 3a-tetrahydropyranyloxy-6a-ethyl-7a-hydroxy-5 b- cholanic acid obtained in Example 8.

Figure 4 shows the x-ray powder diffraction (XRPD) pattern of the diethylamine salt of compound (III) obtained in Example

9.

Figure 5 shows the differential scanning calorimetry diagram of the diethylamine salt of compound (III) obtained in Example 9.

Detailed Description of the Invention

The first aspect of the present invention relates to the compound of formula (I) or a geometric isomer thereof.

The term "geometric isomer" refers to stereoisomers differing only in the position of the substituents linked to a double bond, in the present case, the exocyclic double bond of the compound of formula (I) . Possible geometric isomers are cis (E) and trans ( Z) isomers.

(£)-(!) or trans- { I)

In the present invention, the compound of formula (I) can be isomer Z, isomer £ or a mixture of said isomers. Preferably it is isomer E.

The second aspect of the present invention relates to the use of the compound of formula (I) or a geometric isomer thereof in a process for preparing obeticholic acid of formula (IV), particularly wherein the process for preparing obeticholic acid comprises the following steps:

(a) treating the compound of formula (I) or a geometric isomer thereof with a base and hydrogen, and in the presence of a catalyst, to yield a salt of the compound of formula (II)

(b) treating the salt of the compound of formula (II) with sodium borohydride to yield a salt of the compound of formula (III)

(HI) ;

(c) optionally treating the salt of the compound of formula (III) with an acid at a pH of 4 to 6 to yield the compound of formula (III ) ;

(d) optionally treating the compound of formula (III) obtained in step (c) with diethylamine to yield the diethylamine salt of compound (III); and

(e) treating the salt of the compound of formula (III) obtained in step (b) , the compound of formula (III) obtained in step (c) or the diethylamine salt of compound (III) obtained in step (d) , with an acid at a pH of 0 to 3.

The process used is summarized in the scheme below.

The advantage of the present invention is that steps (a) and (b) can be performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot, rendering it particularly suitable for industrial implementation. After steps (a) and (b) , the compound of formula (III), which is the precursor of obeticholic acid, is obtained.

In step (a) , the benzyl group of the compound of formula

(I) or of a geometric isomer thereof is deprotected, the exocyclic double bond at position C6 is reduced, and said carbon at position C6 is epimerized to the alpha form (a) , thereby obtaining a salt of the compound of formula (II) . These transformations are achieved by means of treatment of the compound of formula (I) or a geometric isomer thereof with a base and hydrogen, and in the presence of a catalyst.

Examples of bases suitable for step (a) are sodium hydroxide, potassium hydroxide, ammonia, preferably sodium hydroxide .

The salt of the compound of formula (II) is formed by the carboxylic acid anion (carboxylate) of the compound of formula

(II) and a cation coming from the base used in step (a) . For example, if the base is sodium hydroxide the salt of the compound of formula (II) is sodium salt, if the base is hydroxide potassium the salt of the compound of formula (II) is potassium salt, and if the base is ammonia the salt of the compound of formula (II) is ammonium salt. Thus, in a preferred embodiment, the cation is selected from the group consisting of Na + , K + and NH4 + , preferably Na + .

In a particular embodiment, the base is mixed with a solvent selected from water, C1-C3 alcohol, and mixture thereof. Examples of C1-C3 alcohols are methanol, ethanol, n-propanol, and isopropanol. Preferably the base is mixed with water, more preferably the base is an aqueous solution, particularly an aqueous solution of sodium hydroxide.

In a preferred embodiment, in step (a) between 1.5 and 2.5 mol of base (preferably of sodium hydroxide) are used with respect to each mol of compound of formula (I) or a geometric isomer thereof, preferably between 1.5 and 2.1 mol, more preferably between 1.8 and 2.1 mol, more preferably between 1.9 and 2.1 mol, most preferably about 2 mol.

In another preferred embodiment, the catalyst of step (a) is selected from the group consisting of palladium on carbon, palladium on calcium carbonate, and platinum oxide, preferably the catalyst is palladium on carbon.

In a particular embodiment, step (a) is performed at a temperature of between 15°C and 50°C, more preferably between 15°C and 45°C, more preferably between 20°C and 45°C, more preferably between 25°C and 45°C, more preferably between 30°C and 45°C, more preferably between 35°C and 45°C, preferably between 38°C and 42°C, more preferably about 40°C. Working in the temperature range of 35°C to 45°C is particularly advantageous since the impurity content is reduced.

In another preferred embodiment, step (a) is performed at a pressure of between 4.5 and 5.5 bar, preferably between 4.5 and 5.2 bar, more preferably between 4.8 and 5.2 bar, even more preferably between 4.8 and 5.0 bar, most preferably about 5 bar. Working in these pressure ranges is also particularly advantageous since the impurity content is reduced.

In a particular embodiment, the treatment with hydrogen of step (a) is maintained between 4 and 10 hours, preferably between 4 and 8 hours, more preferably between 4 and 6 hours, most preferably about 5 hours.

In a preferred embodiment, step (a) is performed in the presence of a solvent selected from a C1-C3 alcohol. Examples of C1-C3 alcohols are methanol, ethanol, n-propanol, and isopropanol. Preferably, the C1-C3 alcohol of step (a) is methanol. In a preferred embodiment, between 5 and 15 ml of C1-C3 alcohol are used for each gram of compound of formula (I) or a geometric isomer thereof, more preferably between 8 and 12 ml, even more preferably about 10 ml.

Particularly, step (a) is performed by first adding the base, the resulting mixture is treated with activated carbon, and then the resulting mixture is filtered by means of any conventional method known to one skilled in the art, for example, by means of a filter with diatomaceous earth, and then hydrogenation is performed.

In a particular embodiment, after hydrogenation the resulting mixture is filtered to remove the catalyst. Said filtration can be performed by means of any conventional method known to one skilled in the art, for example, by means of a filter with diatomaceous earth.

In a particular embodiment, after hydrogenation and removal of the catalyst at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation at a temperature less than 40°C and under reduced pressure (at a pressure less than 1 atm which is able to remove the solvent at a temperature less than 40 °C, which pressure can be readily determined by one skilled in the art) .

Once the salt of the compound of formula (II) has been obtained in step (a) , step (b) for reduction of the ketone group at position C7 to hydroxyl group is performed to yield a salt of the compound of formula (III) . Step (b) comprises the treatment of the salt of the compound of formula (II) with sodium borohydride to yield the salt of the compound of formula (III) .

The salt of the compound of formula (III) is formed by the carboxylic acid anion (carboxylate) of the compound of formula (III) and a cation coming from salt of the compound of formula (II), and in the event that there is additionally a base in the reaction medium, the cation can also be from said base, as explained hereinbelow. In a preferred embodiment, the cation is selected from the group consisting of Na + , K + , and NH4 + , preferably Na + .

In a particular embodiment, between 1 and 3.5 mol of sodium borohydride are used with respect to each mol of salt of compound of formula (II), preferably between 1 and 3 mol, more preferably between 1 and 2.8 mol, even more preferably between 1.1 and 2.5 mol. In a more preferred particular embodiment, between 1 and 3.5 mol of sodium borohydride are used with respect to each mol of compound of formula (I) or a geometric isomer thereof, preferably between 1 and 3 mol, more preferably between 1 and 2.8 mol, even more preferably between 1.1 and 2.5 mol. This more preferred particular embodiment is particularly applied when steps (a) and (b) are performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot.

In a preferred embodiment, between 2 and 3.5 mol of sodium borohydride are used with respect to each mol of salt of compound of formula (II), preferably between 2 and 3 mol, more preferably between 2.3 and 2.8 mol, even more preferably about 2.5 mol. In a more preferred embodiment, between 2 and 3.5 mol of sodium borohydride are used with respect to each mol of compound of formula (I) or a geometric isomer thereof, preferably between 2 and 3 mol, more preferably between 2.3 and 2.8 mol, even more preferably about 2.5 mol. This more preferred embodiment is particularly applied when steps (a) and (b) are performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot.

In a particular embodiment, when step (d) is performed (formation of the diethylamine salt of compound (III)), in step (b) between 1 and 1.5 mol of sodium borohydride are used with respect to each mol of salt of compound of formula (II), preferably between 1 and 1.2 mol, more preferably between 1 and

1.1 mol. In a more preferred embodiment, between 1 and 1.5 mol of sodium borohydride are used with respect to each mol of compound of formula (I) or a geometric isomer thereof, preferably between 1 and 1.2 mol, more preferably between 1 and

1.1 mol. This more preferred embodiment is particularly applied when steps (a) and (b) are performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot.

In a preferred embodiment, step (b) is performed in the presence of a solvent selected from the group consisting of C 1 -C 3 alcohol, water, and mixtures thereof. Examples of C1-C3 alcohols are methanol, ethanol, n-propanol, and isopropanol, preferably methanol. In a preferred embodiment, the solvent is a mixture of methanol and water, preferably a mixture of methanol and water at a ratio of between 4 and 6 volumes of methanol for each volume of water, more preferably between 4.5 and 5.5 volumes of methanol for each volume of water, even more preferably about 5 volumes of methanol for each volume of water.

In a particular embodiment, the solvent is a mixture of methanol and water containing at least 80% by volume of methanol with respect to the total volume of solvent, preferably at least 85%, more preferably at least 90%, even more preferably at least 95%.

In another preferred embodiment, in step (b) between 3.5 and 4.5 ml of solvent are used for each mmol of salt of compound of formula (II), more preferably between 3.75 and 4.25 ml, even more preferably about 4 ml . In a more preferred embodiment, in step (b) between 3.5 and 4.5 ml of solvent are used for each mmol of compound of formula (I), more preferably between 3.75 and 4.25 ml, even more preferably about 4 ml. This more preferred embodiment is particularly applied when steps (a) and (b) are performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot. Using these volumes of solvent is particularly advantageous since the impurity content is reduced.

In a particular embodiment, step (b) is performed at a temperature of between 20°C and 95°C, preferably between 25°C and 90°C, more preferably between 30°C and 90°C. In a particular embodiment, said temperature is maintained between 2.5 and 4 hours, preferably between 2.5 and 3.5 hours, more preferably about 3 hours .

In a preferred embodiment, step (b) is performed at a temperature of between 70°C and 95°C, preferably between 70 and 90°C, more preferably between 75°C and 90°C. In a particular embodiment, said temperature is maintained between 2.5 and 4 hours, preferably between 2.5 and 3.5 hours, more preferably about 3 hours.

In another particular embodiment, when step (d) is performed (formation of the diethylamine salt of compound (III)), step (b) is performed at a temperature of between 20°C and 60°C, preferably between 25 °C and 50°C, more preferably between 30 °C and 45 °C, more preferably between 35 °C and 45

°C, even more preferably about 40 °C. In a particular embodiment, said temperature is maintained between 2.5 and 4 hours, preferably between 2.5 and 3.5 hours, more preferably about 3 hours.

In a particular embodiment, in step (b) a solution of sodium hydroxide in water is also added, preferably between 0.05 and 0.2 mol of sodium hydroxide are added with respect to each mol of salt of compound of formula (II), preferably between 0.05 and 0.15 mol, more preferably between 0.08 and 0.12 mol, even more preferably about 0.1 mol. In a more preferred embodiment, between 0.05 and 0.2 mol of sodium hydroxide are added with respect to each mol of compound of formula (I) or a geometric isomer thereof, preferably between 0.05 and 0.15 mol, more preferably between 0.08 and 0.12 mol, even more preferably about 0.1 mol. This more preferred embodiment is particularly applied when steps (a) and (b) are performed in one and the same reaction vessel without the need to isolate the obtained intermediate products, i.e. one-pot. In these preferred embodiments, the salt of the compound of formula (III) is formed by the carboxylic acid anion (carboxylate) of the compound of formula (III) and a sodium cation.

Particularly, step (b) is performed by dissolving the obtained product after step (a) in the solvent of step (b) , preferably by heating the mixture obtained at the temperature described above for step (b) , followed by addition of sodium borohydride and optionally the addition of the solution of sodium hydroxide in water.

In a particular embodiment, after reduction, i.e., after the treatment with sodium borohydride, at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation at atmospheric pressure, i.e., at about 1 atmosphere.

After step (b) , an optional step, step (c) , for treatment of the salt of the compound of formula (III) with an acid at a pH of 4 to 6 can be performed to yield the compound of formula (HI) ·

Examples of suitable acids for step (c) are phosphoric acid, hydrochloric acid, acetic acid, sulfurous acid, and oxalic acid. Preferably, the acid used in step (c) is phosphoric acid or hydrochloric acid, more preferably phosphoric acid.

In a particular embodiment, the treatment with acid of step (c) is performed at a pH of 4.5 to 5.5, more preferably of about

5.

Determining the pH value, for example by using a pH-meter, is part of the routine work of one skilled in the art.

In a preferred embodiment, step (c) is carried out.

Preferably, step (c) comprises one or more washings with aqueous solution of the acid, particularly phosphoric acid or hydrochloric acid, preferably phosphoric acid. Particularly, for said washings with acidic aqueous solution, the product is dissolved in a suitable organic solvent, such as ethyl acetate. Even more preferably, the obtained product is additionally purified by means of crystallization in linear, branched, or cyclic C5-C8 alkane. Examples of linear, branched, or cyclic C5- C 8 alkane are n-pentane, cyclopentane, isopentane, n-hexane, cyclohexane, n-heptane, cycloheptane, n-octane, isooctane, preferably n-heptane.

Another optional step in step (d) , which comprises treating compound of formula (III) obtained in step (c) with diethylamine to yield the diethylamine salt of compound (III)

III) diethylamine salt

The formation of the diethylamine salt of compound (III) is particularly advantageous since it allows obtaining compound (III) with high purity and/or high yields and has good stability. Moreover, this diethylamine salt can be easily further purified. The use of the diethylamine salt of compound (III) in the synthesis of obeticholic acid allows obtaining said acid with high purity and yield.

In particular, the diethylamine salt of compound (III) can be in solid form.

In particular, the diethylamine salt of compound (III) has a DSC (differential scanning calorimetry) diagram that comprises an endothermic peak having an onset temperature of about 202 ± 0.3 °C, more particularly the DSC diagram is substantially as shown in Figure 5. In particular, the diethylamine salt of compound (III) is characterized by a DSC diagram comprising and endothermic peak between 170 and 270 °C. More particularly, the diethylamine salt of compound (III) is characterized by a DSC comprising an endothermic peak having a peak temperature in the range between 220 and 230 °C. The DSC diagrams can be obtained as described in the examples.

The "onset temperature" or "T onset" refers to the temperature resulting from the extrapolation of the baseline before transition starts and baseline during energy absorption (tangent to the curve of energy absorption (peak) at the point of inflection) .

The "peak temperature" refers to the temperature that has the greatest distance between the curve of the peak to be characterized and the virtual baseline resulting from the extrapolation of the baseline before transition starts.

In particular, the diethylamine salt of compound (III) is characterized by being in crystalline form and by having an X- ray powder diffraction (XRPD) pattern with peaks at 5.5, 7.8,

10.1, 11.1, 12.1, 12.8, 13.2, 14.2, 16.4, 17.9, 20.3, 20.5 and 22.1 °2Q + 0.2 °2Q. In particular the crystalline form has an

XRPD pattern with peaks at 5.5, 7.8, 10.1, 11.1, 12.1, 12.8, 13.2, 14.2, 16.4, 16.7, 17.9, 20.3, 20.5, 22.1 and 23.3 °2Q + 0.2 °2Q; more particularly substantially as shown in Figure 4. XRPD patterns can be acquired using a powder diffraction system having a copper anode emitting CuKa radiation at a wavelength of 1.54 A, in particular following the method described in the examples.

In an embodiment, step (d) is performed. In an alternative embodiment, step (d) is not performed.

In a preferred embodiment of step (d) , this step is carried out in a solvent selected from the group consisting of C 1 -C 4 alkyl acetates, C 1 -C 4 alcohols, ketones, water, and mixtures thereof, preferably ethyl acetate. Examples of C 1 -C 4 alkyl acetates are n-butyl acetate and tert-butyl acetate. Examples of C 1 -C 4 alcohols are methanol, ethanol, n-propanol, isopropanol, n- butanol, sec-butanol, isobutanol and tert-butanol . Examples of ketones are acetone and methyl isobutyl ketone.

In a particular embodiment, the treatment with diethylamine is carried out at a temperature of from 15 °C to 80 °C, preferably from 20 °C to 70 °C, more preferably from 15 °C to 40 °C, more preferably from 25 °C to 45 °C.

In a particular embodiment, the treatment with diethylamine is carried out from 0.5 to 20 hours, preferably from 1 to 10 hours .

In a preferred embodiment, the diethylamine salt of compound (III) is subjected to a purification step, preferably recrystallization. A suitable solvent for recrystallizing said salt is ethyl acetate, preferably in a ratio of 4 ml of ethyl acetate with respect to 1 g of diethylamine salt of compound (HI) ·

The next step is step (e) , which involves deprotection of the tetrahydropyranyl group in the compound of formula (III) or in the salt of the compound of formula (III), including the diethylamine salt of compound (III) . This step comprises treating the compound of formula (III) or the salt of the compound of formula (III) with an acid at a pH of 0 to 3.

Any suitable acid can be used for the deprotection of hydroxyl groups protected with a tetrahydropyranyl group.

Examples of suitable acids for step (e) are hydrochloric acid, p-toluenesulfonic acid, sulfuric acid, phosphoric acid, and methanesulfonic acid, among others. Preferably, the acid of step (e) is hydrochloric acid.

Preferably, when step (c) is performed and step (d) is not performed, in step (e) between 1 and 2 mol of hydrochloric acid are used for each mol of compound of formula (III), more preferably between 1.2 and 2 mol, more preferably between 1.4 and 1.8 mol, even more preferably about 1.5 mol.

Preferably, when step (d) is performed, in step (e) between 2 and 4 mol of hydrochloric acid are used for each mol of the diethylamine salt of compound (III), more preferably between 2 and 3 mol, more preferably between 2 and 2.5 mol, even more preferably about 2.25 mol.

In a preferred embodiment, step (e) is performed in the presence of a solvent selected from the group consisting of C1-C4 alkyl acetates, ketones, C1-C4 alcohols, cyclic or linear ethers, acetonitrile, water, and mixtures thereof. Examples of C1-C4 alkyl acetates are ethyl acetate, n-butyl acetate, and tert- butyl acetate. Examples of ketones are acetone and methyl-iso- butylketone. Examples of C1-C4 alcohols are methanol, ethanol, n- propanol, isopropanol, n-butanol, sec-butanol, isobutanol and tert-butanol , preferably methanol. Examples of cyclic or linear ethers are diethyl ether, tetrahydrofuran, and dioxane. In a preferred embodiment, the solvent is selected from the group consisting of acetone, methanol, water and mixtures thereof. In a more preferred embodiment the solvent comprises acetone, preferably it is a mixture of acetone and water. In another embodiment, the solvent comprises methanol, preferably it is a mixture of methanol and water. Preferably, between 2.5 and 7.5 ml of acetone are used for each mmol of compound of formula (III) or salt of the compound of formula (III), more preferably between 4 and 6 ml, even more preferably about 5 ml. Preferably, between 2 and 10 ml of methanol are used for each gram (g) of compound of formula (III) or salt of the compound of formula (III), more preferably between 4 and 8 ml, even more preferably about 6 ml. Preferably, when water is used in a mixture with either methanol or acetone, between 0.05 and 2.5 ml of water are used for each mmol of compound of formula (III) or salt of the compound of formula (III), more preferably between 0.05 and 1.25 ml .

In another preferred embodiment, step (e) is performed at a temperature of between 15°C and 35°C, more preferably between 15°C and 30°C, more preferably between 20°C and 25°C.

In a particular embodiment, the treatment with acid of step (e) has a duration of between 6 and 10 hours, preferably between 7 and 9 hours, more preferably about 8 hours.

In another particular embodiment, after the treatment with acid in the presence of a solvent, at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation at a temperature less than 40°C, more preferably of about 35°C. Particularly, said distillation is performed under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at a temperature less than 40°C or 35°C. This pressure can be readily determined by one skilled in the art. Preferably, the product obtained after removal of the solvent is purified by means of one or more washings with basic aqueous solution, particularly of sodium hydroxide, until obtaining a pH of about 12. Particularly, for purification by means of said washings with basic aqueous solution, the product is dissolved in a suitable organic solvent such as ethyl acetate. The basic aqueous phase obtained after the washings is taken to pH of between 2 and 3, particularly by means of the addition of hydrochloric acid. Even more preferably the obtained product is isolated by means of filtration.

When step (d) is performed and step (e) is carried out in a C1-C4 alcohol (such as methanol), instead of directly obtaining obeticholic acid, the corresponding ester of obeticholic acid and the C1-C4 alcohol (such as the methyl ester of obeticholic acid) is obtained. Thus, in a particular embodiment, when step (d) is performed (i.e. formation of the diethylamine salt of compound (III)), in step (e) , after the treatment with an acid in the presence of a solvent, the resulting mixture is basified, preferably to a pH of at least 11, more preferably to a pH of at least 12. This step needs to be performed when the solvent used in step (e) is a C1-C4 alcohol (such as methanol), in order to hydrolyze the corresponding ester of obeticholic acid and the C1-C4 alcohol. Any suitable base capable of hydrolyzing said ester and also capable of providing diethylamine as a free base and forming a salt between the cation of said base and the carboxylate anion can be used. Examples of such bases are aqueous solutions of sodium hydroxide or potassium hydroxide, preferable aqueous solution of sodium hydroxide. In particular, this treatment with base is carried out at a temperature of from 15 °C to 60 °C, preferably from 30 °C to 60 °C, more preferably from 45 °C to 55 °C. In particular this treatment with base is carried out for 2 to 8 hours, preferably from 4 to 6 hours, more preferably about 5 hours. In particular, after the treatment with base, at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. This solvent includes the diethylamine (free base) released with the basic treatment. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation at a temperature less than 40°C, more preferably of about 35°C. Particularly, said distillation is performed under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at a temperature less than 40°C or 35°C. This pressure can be readily determined by one skilled in the art. After solvent removal, the resulting mixture (which comprises obeticholic acid in the form of a salt) is acidified. Any acid suitable for forming obeticholic free acid may be used, such as hydrochloric acid, p-toluenesulfonic acid, sulfuric acid, phosphoric acid and methanesulfonic acid, preferably hydrochloric acid, more preferably aqueous solution of hydrochloric acid. In particular, the mixture is acidified to a pH less than or equal to 2, preferably less than or equal to 1. In particular the treatment with acid is carried out at from 15 °C to 35 °C, preferably from 15 °C to 30 °C, more preferably from 20 °C to 25 °C. The product obtained after said treatment, i.e. obeticholic acid, is preferably isolated by filtration.

In a third aspect, the present invention relates to a process for preparing a compound of formula (I) or a geometric isomer thereof, which process comprises treating a compound of formula (V) or a geometric isomer thereof with 3, 4-dihydro-2H- pyran in the presence of an acid.

As defined with respect to the compound of formula (I), geometric isomers refer to stereoisomers differing only in the position of the substituents linked to a double bond, in the present case, the exocyclic double bond of the compound of formula (V) . Possible geometric isomers are cis ( Z) and trans (E) isomers.

E- (V)

In the present invention, the compound of formula (V) can be isomer Z, isomer E, or a mixture of said isomers. Preferably it is isomer E.

Any suitable acid can be used for the protection of hydroxyl groups by formation of the tetrahydropyranyl ether, such as camphorsulfonic acid and p-toluenesulfonic acid, among others. Preferably the acid is camphorsulfonic acid, more preferably (IS) - (+ ) -10-camphorsulfonic acid.

In a preferred embodiment, between 0.04 and 0.06 mol of acid are used with respect to each mol of compound of formula (V) or a geometric isomer thereof, preferably between 0.05 and 0.06 mol, more preferably about 0.05 mol. These amounts are particularly advantageous since they allow obtaining higher conversion of the product of formula (V) or a geometric isomer thereof.

In another preferred embodiment, between 1 and 3 mol of 3 , 4-dihydro-2H-pyran are used with respect to each mol of compound of formula (V) or a geometric isomer thereof, preferably between 1 and 2 mol, most preferably about 1.5 mol. In another preferred embodiment, treatment of the compound of formula (V) with 3 , 4-dihydro-2H-pyran is performed in the presence of a solvent selected from the group consisting of dichloromethane, tetrahydrofuran, and mixtures thereof, preferably dichloromethane. The use of dichloromethane is particularly advantageous since it achieves higher yields and lower impurity content. Preferably, between 5 and 15 ml of solvent are used with respect to each gram of compound of formula (V) or a geometric isomer thereof, more preferably about 10 ml.

In another preferred embodiment, treatment of the compound of formula (V) with 3 , 4-dihydro-2H-pyran is performed at a temperature of between 15°C and 35°C, preferably between 20°C and 25°C.

In a particular embodiment, treatment of the compound of formula (V) with 3 , 4-dihydro-2H-pyran has a duration of between 4 and 10 hours, preferably between 4 and 7 hours, more preferably about 5 hours .

In another particular embodiment, said treatment is performed in inert atmosphere, for example in nitrogen or argon atmosphere .

In another particular embodiment, after treatment of the compound of formula (V) or a geometric isomer thereof with 3,4- dihydro-2H-pyran the pH is adjusted to about 9, for example by means of the addition of triethylamine . Preferably, after adjustment of the pH at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at the temperature used (which pressure can be readily determined by one skilled in the art) , and preferably at a temperature less than 40 °C .

In a particular embodiment, treatment of compound (V) or a geometric isomer thereof to give the diethylamine salt of compound (III) is performed one-pot, i.e. in the same reaction vessel and without isolating the intermediate compounds obtained in the process. This is particularly advantageous for industrial implementation of the process.

The compound of formula (V) , as well as the process for obtaining the same, are described in Zampella et al . [J. Med. Chem. , 2012, 55, 84-93] . Said compound can be obtained by means of the process described in this paper or by means of the steps described below.

In a preferred embodiment, the compound of formula (V) or a geometric isomer thereof is obtained by treatment of a compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether.

In a particular embodiment, between 1.5 and 2.5 mol of acetaldehyde are used with respect to each mol of compound of formula (VI), preferably between 1.8 and 2.2 mol, more preferably about 2 mol .

In another particular embodiment, between 1.5 and 3.5 mol of boron trifluoride-diethyl ether are used with respect to each mol of compound of formula (VI), preferably between 2 and 3 mol, most preferably about 2.5 mol.

In another particular embodiment, treatment of the compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether is performed in dichloromethane . Preferably, between 2 and 15 ml of solvent are used with respect to each gram of compound of formula (VI), more preferably between 5 and 10 ml.

In another particular embodiment, treatment of the compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether is performed at a temperature of between -60°C and -65°C, particularly for 1.5 to 3 hours, preferably for about 2 hours, followed by a temperature of between 20°C and 25°C, particularly for 2 to 5 hours, preferably for about 3 hours.

In another particular embodiment, after treatment of the compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether one or more washings are performed with an aqueous solution of sodium bicarbonate. Preferably, after the washings at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at the temperature used (which pressure can be readily determined by one skilled in the art) and preferably at a temperature less than 40°C.

In a preferred embodiment, the compound of formula (VI) is obtained by treatment of a compound of formula (VII) with chlorotrimethylsilane or trimethylsilyl trifluoromethane- sulfonate in the presence of a base.

Bases suitable for this treatment are, for example, hexyl- lithium and n-butyl-lithium, preferably further comprising diisopropylamine. Preferably, the compound of formula (VI) is obtained by treatment of a compound of formula (VII) with chlorotrimethylsilane and hexyl-lithium in the presence of diisopropylamine. Preferably between 4 and 5 mol of chlorotrimethylsilane are used for each mol of compound of formula (VII), more preferably about 4.5 mol. Particularly, the treatment is performed in a suitable solvent, such as, for example, tetrahydrofuran, hexane, and mixtures thereof, preferably in a mixture of tetrahydrofuran and hexane. Preferably between 5 and 20 ml of solvent are used for each gram of compound of formula (VII), more preferably between 10 and 25 ml. Particularly, this treatment is performed in inert atmosphere (for example, nitrogen or argon atmosphere) and preferably at a temperature of between -70°C and -80°C. In a particular embodiment, after treatment of the compound of formula (VII) with chlorotrimethylsilane or trimethylsilyl trifluoromethanesulfonate in the presence of a base and a solvent, one or more washings with aqueous solution of citric acid and optionally one or more washings with aqueous solution of bicarbonate are performed. Preferably, at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at the temperature used (which pressure can be readily determined by one skilled in the art) and preferably at a temperature less than 40°C.

In a preferred embodiment, the compound of formula (VII) is obtained by treatment of a compound of formula (VIII) with benzyl bromide in the presence of a base.

Bases suitable for this treatment are any base suitable for the protection of carboxylic acids by formation of the corresponding benzyl ester, such as, for example, tertiary amines containing three C1-C4 alkyl groups that are the same or different, such as, for example, triethylamine, and cesium carbonate, among others. Preferably the base is triethylamine.

Preferably between 1 and 2 mol of benzyl bromide are used for each mol of compound of formula (VIII), more preferably about 1.5 mol. Particularly, the treatment is performed in a suitable solvent, such as, for example, toluene. Preferably between 2 and 8 ml of solvent are used for each gram of compound of formula (VII), more preferably about 5 ml. Particularly, this treatment is performed for 4 to 6 hours, preferably for about 5 hours. Particularly, treatment is performed at a temperature of between 90°C and 120°C, preferably of between 105°C and 115°C. In a particular embodiment, after treatment of the compound of formula (VIII) with benzyl bromide in the presence of a base and a solvent, one or more washings with water and one or more washings with aqueous solution of sodium hydroxide, and one or more washings with aqueous solution of hydrochloric acid are performed. Preferably, at least 70% of the volume of the solvent is removed, preferably at least 75%, more preferably at least 80%, more preferably at least 85%, more preferably at least 90%, even more preferably at least 95%. Removal of the solvent is preferably performed by means of distillation, particularly by means of distillation under reduced pressure, i.e., at a pressure less than 1 atm which is able to remove the solvent at the temperature used (which pressure can be readily determined by one skilled in the art) and preferably at a temperature less than 40°C. Optionally, the obtained product can be purified by means of crystallization, particularly of a mixture of ethyl acetate and hexane .

In a preferred embodiment, the compound of formula (VIII) is obtained by treatment of a compound of formula (IX) with sodium bromide and sodium hypochlorite.

Preferably between 0.05 and 0.15 mol of sodium bromide are used for each mol of compound of formula (IX), more preferably about 0.1 mol. Preferably 1 to 2 mol of sodium hypochlorite are used for each mol of compound of formula (IX), more preferably 1.3 to 1.4 mol. Particularly, treatment of the compound of formula (IX) with sodium bromide and sodium hypochlorite is performed in the presence of acetic acid. Particularly, this treatment is performed for 10 to 20 hours, preferably for about 15 hours. Particularly, the treatment is performed at a temperature of between -5°C and 5°C. In a particular embodiment, after this treatment of the compound of formula (IX) water and sodium bisulfite are added. Preferably, compound of formula (VIII) is isolated by means of filtration.

In a particular embodiment, the compound of formula (I) or a geometric isomer thereof is obtained by means of a process comprising the steps of:

(a) treating a compound of formula (IX) with sodium bromide and sodium hypochlorite to yield a compound of formula (VIII)

(b) treating the compound of formula (VIII) with benzyl bromide in the presence of a base to yield a compound of formula

(VII)

(c) treating the compound of formula (VII) with chlorotrimethylsilane or trimethylsilyl trifluoromethanesulfonate in the presence of a base to yield a compound of formula (VI)

(d) treating the compound of formula (VI) with acetaldehyde in the presence of boron trifluoride-diethyl ether to yield a compound of formula (V) or a geometric isomer thereof

(e) treating the compound of formula (V) or a geometric isomer thereof with 3, 4-dihydro-2H-pyran in the presence of an acid to yield the compound of formula (I) or a geometric isomer thereof

Each of these steps can be performed using the conditions described above.

In another aspect, the present invention relates to an amorphous form of obeticholic acid.

In a particular embodiment, said amorphous form is characterized by comprising a halo (broad band) in the x-ray powder diffraction pattern which has a maximum at about 15 °2Q, particularly the halo goes from about 5 °2Q to about 30 °2Q.

Preferably, the amorphous form of obeticholic acid of the present invention has an x-ray powder diffraction pattern substantially similar to that of Figure 1. The x-ray powder diffraction pattern can be obtained by means of the method described in the examples. In another particular embodiment, said amorphous form is characterized by having a differential scanning calorimetry (DSC) diagram with endothermic peaks at from about 75°C to about 90°C and at from about 260°C to about 270°C. Preferably, the amorphous form of obeticholic acid of the present invention has a DSC diagram substantially similar to that of Figure 2. The DSC diagram can be obtained by means of the method described in the examples .

In the context of the present invention, the term "about" refers to the value which characterizes ±5% of said value.

Examples

Materials and methods

XRPD analysis was performed in a Siemens D-500 x-ray powder diffractometer equipped with a copper anode with a wavelength of 1.54 A. Scanning parameters: 4-50 degrees 2Q, continuous scanning, ratio: 1.2 35 degrees/minute.

DSC analysis was performed in a Mettler Toledo 822e apparatus with STARe SW11.00 software for obeticholic acid and 3a-tetrahydropyranyloxy- 6a-ethyl-7a-hydroxy-5 b-cholanic acid or STARe SW15.00 software for the diethylamine salt of compound (III) . Parameters: heating range of 25 to 300°C with a ramp of 20°C/min and N2 flow of 50 ml/min. The measurement is taken with a pierced closed crucible.

The purity of the obtained products obtained by means of the disclosure of examples 5, 6, 8 and 10 has been analyzed by high performance liquid chromatography in a Waters Alliance apparatus, provided with variable wave detector and temperature- controlled oven for the column. The experimental conditions for obtaining a chromatogram 0 were: XSelect HSS T3 3.5pm column (150 mm x 3.0 mm, 3.5 pm); mobile phase A: water at pH 2.6 corrected with phosphoric acid; mobile phase B: acetonitrile; flow: 0.8 ml/min; column temperature: 40°C; injection volume 25 pL; detection wavelength: 214 nm; solvent for the samples to be analyzed: acetonitrile/water (70:30); concentration: 1 mg/mL. Time (minutes) :

0 min: 50% phase A 3 min: 50% Phase A

23 min: 5% Phase A

30 min: 5% Phase A

32 min: 50% Phase A

35 min: 50% Phase A

The purity of the products obtained by means of the disclosure of examples 7, 9 and 11 has been analyzed by high performance liquid chromatography in a Waters Alliance apparatus, provided with index of refraction detector and temperature-controlled oven for the column. The experimental conditions for obtaining a chromatogram were: Kinetex C18 2.6 pm column (150 mm x 4.6 mm); mobile phase 0.1% phosphoric acid aqueous solution/methanol/acetonitrile (30:30:40); flow: 1.2 ml/min (isocratic mode); column temperature: 40°C; injection volume 10 pL; solvent for the samples to be analyzed: water/methanol/acetonitrile (12:60:28); concentration: 1 mg/mL. Time: 45 minutes.

Example 1. Synthesis of 3a-hydroxy-7-keto-5 b-cholanic acid (compound of formula (VIII))

250 g (636.8 mmol) of chenodeoxycholic acid (CDCA) and 6.55 g (63.7 mmol, 0.1 molar equivalents) of NaBr were mixed with 1750 mL of methanol under intense stirring to homogenize the mixture. Then 34 mL (534.9 mmol, 1.05 molar equivalents) of 90% acetic acid were added and the resulting mixture was cooled at the temperature of between -5 and 5°C. By maintaining said temperature, 371 mL of a solution of 15% NaCICp (titration assay 164.55 g CI2/L, 1.35 molar equivalents) were slowly added. The resulting reaction mixture was maintained under stirring for about 15 h at the temperature of between -5 and 5°C. After maintenance ended, the resulting mixture was heated at the approximate temperature of 25°C and 60 mL of an aqueous solution of 5% sodium bisulfite were slowly loaded. The obtained mixture was stirred for 30 minutes at the indicated temperature. 250 mL of water were added at the indicated temperature and the obtained mixture was stirred for 30 minutes. The reaction mass was filtered and washed with 125 mL of methanol and two fractions of 250 mL each of water, and the solid thus obtained was dried to constant weight yielding 191.4 g (yield 76.9%) of 3a-hydroxy-7-keto-5 b-cholanic acid .

Example 2. Synthesis of benzyl 3a-hydroxy-7-keto-5b-cholanate (compound of formula (VII))

25 g (64.0 mmol) of 3a-hydroxy-7-keto-5b-cholanic acid were mixed with 125 mL of toluene. To the resulting mixture 13.8 mL (99.0 mmol, 1.55 molar equivalents) of triethylamine and 11.4 mL (95.98 mmol, 1.5 molar equivalents) of benzyl bromide were then added, maintaining the temperature between 20 and 25 °C. The resulting mixture was heated at the reflux temperature (about 111°C) and was maintained under stirring at said temperature for 5 hours. Once maintenance ended, the reaction mass was cooled at the approximate temperature of 25°C and a solution previously prepared by mixing 45 mL of water and 5 mL of an aqueous solution of NaOH 30% was slowly added. The organic phase was separated and mixed with 45 mL of water. The organic phase was separated again and mixed with 45 mL of water, and the obtained mixture was acidified with HC1 37% to a pH value of about 2. The organic phase was separated and the solvent was vacuum-distilled to obtain 30.8 g (yield 88%) of a colorless oil corresponding to benzyl 3a-hydroxy-7-keto-5b-cholanate .

Example 3. Synthesis of benzyl 3a, 7-trimethylsilyloxy-5b-cholan- 6-enate (compound of formula (VI))

65.85 g (650 mmol) of diisopropylamine were dissolved in 250 mL of tetrahydrofuran under nitrogen atmosphere. The resulting mixture was cooled to about -72°C and 271.3 mL of a 2.3 M solution of hexyl-lithium in hexane were slowly added, maintaining the indicated temperature. A previously prepared solution of 50 g (104 mmol) of benzyl 3a-hydroxy-7-keto-5 b- cholanate and 50.84 g (468 mmol, 4.5 molar equivalents) of TMSC1 (chlorotrimethylsilane) ) in 208 mL of tetrahydrofuran was slowly added at said temperature. The mixture was maintained under stirring under nitrogen atmosphere at the temperature of about - 72°C. Once maintenance ended, a previously prepared solution of 75 g (390 mmol) of citric acid in 200 mL of water was slowly added without the temperature exceeding 5°C. Once the addition ended, the mixture temperature was left to reach 20°C and the organic phase was separated. The solvent was distilled by means of vacuum until obtaining an oil residue, which was dissolved in 350 mL of dichloromethane . The resulting organic phase was first washed with 150 mL of a saturated aqueous solution of NaHC0 3 and then with 150 mL of water. Finally, the solvent was vacuum distilled to obtain 62.80 g of a dense oil corresponding to benzyl 3a, 7-trimethylsilyloxy-5 p-cholan-6-enate, which was used in the following step of synthesis without further purification. Example 4. Synthesis of benzyl 3a-hydroxy-6-ethylidene-7-keto- 5b- (compound of formula (V) )

62.80 g (100 mmol) of benzyl 3a, 7-trimethylsilyloxy-5p- cholan-6-enate were dissolved in 470 mL of dichloromethane and the resulting solution was cooled at the temperature of between -60 and -65°C. 8.85 g (201 mmol, 2 molar equivalents) of acetaldehyde and then 35.65 g (251 mmol, 2.5 molar equivalents) of boron trifluoride-diethyl ether were added. The reaction mixture was maintained under stirring for 2 hours at the temperature of between -60 and -65°C and then for 3 hours at the temperature of between 20 and 25°C. Once maintenance ended, 820 mL of an aqueous solution of NaHC0 3 were added to the reaction mixture and the resulting mixture was maintained under stirring for 45 minutes at a temperature less than 30°C. The organic phase was separated and initially washed with 250 mL of a 2N aqueous solution of NaCl and then with a saturated aqueous solution of NaCl . Finally, the solvent was vacuum distilled to obtain 62.80 g of a dense oil corresponding to benzyl 3a- hydroxy- 6-ethylidene-7-keto-5 b-cholanate .

Example 5. Synthesis of benzyl 3a-tetrahydropyranyloxy- 6- (compound of formula (I))

200 g (395 mmol) of benzyl 3a-hydroxy-6-ethylidene-7-keto- 5b-o1io1hhh5b were mixed with 2000 mL of dichloromethane and 4.58 g (19.7 mmol, 0.05 molar equivalents) of (IS)— (+ )— 10- camphorsul fonic acid under nitrogen atmosphere to obtain a solution at the temperature of between 20 and 25°C. By maintaining said temperature, 54 ml (592 mmol, 1.5 molar equivalents) of 3 , 4-dihydro-2H-pyran were slowly added and the resulting reaction mixture was maintained under stirring at the same temperature for 5 hours. Once maintenance ended, the pH of the reaction mixture was adjusted to an approximate value of 9 by means of the addition of 24 mL of triethylamine at the temperature of between 20 and 25°C. The resulting reaction mixture was concentrated by vacuum distilling the solvent, and a very dense and virtually colorless oil corresponding to benzyl 3a-tetrahydropyranyloxy-6-ethylidene-7-keto-5p-cholanate was obtained. The purity of the obtained product is 96.68%.

! H-NMR (CDCls, 400 MHz) d (ppm) : 7.35 (5H, m) , 6.15 (1H, m) ,

5.30 (1H, s) , 5.12 (2H, dd) , 4.72 (1H, dt) , 3.88 (1H, m) , 3.67

(1H, m) , 3.49 (1H, m) , 2.56 (1H, m) , 2.19-2.48 (3H, m) , 1. OS- 2.04 (28 H, m) , 1.00 (3H, m) , 0.91 (3H, d) , 0.61 (3H, s) .

13 C-NMR (CDCls, 400 MHz) d (ppm) : 205.19, 204.86, 174.15,

143.92, 143.59, 136.25, 129.88, 129.31, 128.67, 128.30, 96.70,

96.45, 74.31, 66.22, 62.84, 62.59, 54.65, 50.75, 48.86, 45.64,

43.73, 39.17, 39.06, 35.54, 35.31, 34.88, 34.54, 33.93, 31.42, 31.26, 31.12, 28.55, 27.98, 26.10, 25.61, 22.98, 21.45, 19.93,

19.73, 18.55, 12.90, 12.18.

Example 6. Synthesis of benzyl 3a-tetrahydropyranyloxy- 6- qίίirIίάqhq-T-Hqίo-Ob-^zoIhhhίq (compound of formula (I))

200 g (395 mmol) of benzyl 3a-hydroxy-6-ethylidene-7-keto- 5p-cholanate were mixed with 2000 mL of dichloromethane and 4.58 g (19.7 mmol) of camphorsulfonic acid under nitrogen atmosphere to obtain a solution at the temperature of between 20 and 25°C. By maintaining said temperature, 54 ml (592 mmol) of 3,4- dihydro-2H-pyran were slowly added, and the resulting reaction mixture was maintained under stirring at the same temperature for 5 hours. Once maintenance ended, the pH of the reaction mixture was adjusted to an approximate value of 9 by means of the addition of 600 mL of a saturated aqueous solution of NaHC0 3 at the temperature of between 20 and 25°C. The obtained phases were allowed to decant, and the organic phase was separated from the aqueous phase. 600 mL of water were added to the organic phase, and the organic phase was separated again. The organic phase was concentrated by vacuum-distilling the solvent, and a very dense and virtually colorless oil corresponding to benzyl 3a-tetrahydropyranyloxy- 6-ethylidene-7-keto-5 b-cholanate was obtained. The purity of the obtained product is 96.23%.

Example 7. Synthesis of benzyl 3a-tetrahydropyranyloxy- 6- (compound of formula (I))

9.55 kg (18.84 mmol) of benzyl 3a-hydroxy-6-ethylidene-7- keto-5 b-cholanate and 0.22 kg (0.94 mol, 0.05 molar equivalents) of (IS) - (+ ) -10-camphorsulfonic acid were mixed with 100 L of dichloromethane under nitrogen atmosphere to obtain a solution at the temperature of between 20 and 25°C. By maintaining said temperature, 2.7 L (28.71 mol, 1.5 molar equivalents) of 3,4- dihydro-2H-pyran were added and the resulting reaction mixture was maintained under stirring at the same temperature for 2 hours. Once maintenance ended, the pH of the reaction mixture was adjusted to an approximate value of 9.5 by means of the addition of 1.5 L of triethylamine at the temperature of between 20 and 25°C. The resulting reaction mixture was concentrated by vacuum distilling the solvent, and a very dense and virtually colorless oil corresponding to benzyl 3a-tetrahydropyranyloxy- 6- ethylidene-7-keto-5b-cholanate was obtained. The purity of the obtained product as determined by HPLC is 98.35%.

Example 8. Synthesis of 3a-tetrahydropyranyloxy-6a-ethyl-7a- hydroxy-5 b-cholanic acid (compound of formula (III))

52.0 g of the product obtained in Example 6 (equivalent to 50 g (84.6 mmol) of benzyl 3a-tetrahydropyranyloxy-6-ethylidene- 7-keto-5 b-cholanate ) were dissolved in 500 mL of methanol and 23 mL of a 30% aqueous solution (w/v) of sodium hydroxide. 1.6 g of 4S-type activated carbon were loaded, and the resulting mixture was heated to the temperature of about 40°C, maintaining stirring of the mixture for 30 minutes at said temperature. Then the mixture was cooled at the temperature of about 25 °C. The mixture was filtered through a diatomaceous earth filter, was introduced in a pressure reactor, and 2.5 mg of Pd/C were added. The reactor was pressurized with hydrogen to an internal pressure of 5 bar, and the resulting reaction mixture was maintained at the temperature of about 40°C for 5 hours. Once said maintenance ended, the reaction mass was cooled at the temperature of about 20°C, and the Pd/C was filtered by means of a filter with diatomaceous earth. The reaction mass was distilled by means of reduced pressure without exceeding the temperature of 40°C until obtaining a dense residue. 340 mL (8 volumes with respect to the total theoretical mass, 42.5 g, to be obtained of the compound of formula (II)) of a 5:1 mixture of methanol/water were added to said residue and was heated to a temperature of between 75 and 80°C. A solution of 8 g (211.5 mmol, 2.5 molar equivalents) of NaBIHU and 0.673 mL of a 50% aqueous solution (w/v) of sodium hydroxide (0.1 molar equivalents) in 14.16 mL of water was slowly added to said homogeneous mixture. The resulting reaction mixture was maintained under stirring at the reflux temperature (about 87 °C) for 3 hours (control of the reaction mass by means of HPLC shows complete conversion of the product 3a-tetrahydropyranyloxy- 6a- ethyl-7-keto-5/3-cholanic acid) . Once maintenance ended, most of the methanol was distilled at atmospheric pressure and 250 mL of ethyl acetate were added to the resulting mass. The pH of the resulting mixture was adjusted to a value of about 5 by means of the addition of an 85% aqueous solution of phosphoric acid and the phases thus obtained were separated. 250 mL of ethyl acetate were added to the aqueous phase and the resulting phases were separated. The two organic phases thus obtained were pooled and mixed with 250 mL of a 10% aqueous solution of sodium chloride. The phases were separated and the resulting organic phase was vacuum-distilled to a maximum temperature of 30°C. 55 mL of ethyl acetate were added to the obtained residue and the resulting mixture was heated at a temperature of about 75°C. 55 mL of n-heptane were added to the resulting solution and the mixture was slowly cooled under gentle stirring until the temperature of about 20°C, the presence of a white solid being observed. The resulting mixture was maintained at said temperature for 2 hours and the solid present was filtered and washed twice with 25 mL of a mixture of ethyl acetate/n-heptane . The white solid thus obtained yielded, after being dried, 37.0 g (86.6%) corresponding to 3a-tetrahydropyranyloxy- 6a-ethyl-7a- hydroxy-5 b-cholanic acid. The purity of the product was analyzed by means of HPLC to obtain 99.08%.

1 H-NMR (DMSO-d6, 400 MHz) d (ppm) : 12.07 (1H, broad s), 4.66 (1H, m) , 4.05 (1H, s), 3.76 (1H, m) , 3.51 (1H, m) , 3.38 (1H, m) , 3.26 (1H, s), 2.22 (1H, m) , 2.09 (1H, m) , 1.89-2.01 (2H, m) , 0.94-1.83 (29H, m) , 0.8-0.9 (9H, m) , 0.61 (3H, s) .

13 C-NMR (DMSO-d6, 400 MHz) d (ppm) : 174.95, 96.22, 95.07, 76.38, 75.14, 68.23, 61.46, 55.55, 50.05, 45.48, 42.02, 41.28, 40.05, 35.31, 35.09, 32.58, 31.15, 30.88, 30.77, 29.69, 28.48, 27.83, 26.20, 25.14, 23.09, 22.97, 22.12, 20.38, 19.42, 18.18, 11.71.

Figure 3 shows the DSC of the obtained product.

Example 9. Synthesis of the diethylamine salt of 3a- tetrahydropyranyloxy-6a-ethyl-7a-hydroxy-5 b-cholanic_ acid

(diethylamine salt of compound (III))

The product obtained in Example 7 was dissolved in 30 L of methanol. The resulting reaction mixture was concentrated by means of solvent vacuum distillation and 45 L of methanol and 0.96 L of a 30% (w/v) aqueous solution of sodium hydroxide were added. The solution thus obtained was heated to the temperature of about 40 °C and recirculated for 1 hour and 15 minutes through a filter containing 4S-type activated carbon and diatomaceous earth. The filtered solution was introduced in a pressure reactor, the filtering system was washed with 2 fractions of 16 L each of methanol and 4.3 L of a 30% (w/v) aqueous solution of sodium hydroxide and 0.6 kg of 5% Pd/C were added. The reactor was pressurized with hydrogen to an internal pressure of 5 bar, and the resulting reaction mixture was maintained at the temperature of about 40°C for 5 hours. Once said maintenance ended, the reaction mass was cooled at the temperature of about 20°C, and the 5% Pd/C was filtered by means of a filter with diatomaceous earth. The filter was washed with 3 fractions of 20 L each of methanol. The reaction mass was distilled by means of reduced pressure without exceeding the temperature of 40°C until obtaining a distillate volume of about 50 L. 6 L of a 14 M solution of sodium hydroxide and 12% of NaBH4 (38.09 mol NaBIHU, 1.1 molar equivalents) were slowly added at a temperature of about 40 °C. The resulting reaction mixture was maintained under stirring at the reflux temperature for 3 hours (control of the reaction mass by means of HPLC shows complete conversion of the product 3a-tetrahydropyranyloxy- 6a- ethyl-7-keto-5/3-cholanic acid) . Once maintenance ended, the reaction solvent was distilled at atmospheric pressure and 48 L of water and 38 L of n-heptane were added to the obtained residue. The resulting mixture was heated under stirring to the temperature of about 45 °C. Stirring was stopped and the obtained mixture was allowed to stand and the resulting phases were separated. 25 L of ethyl acetate and an aqueous solution of 85% phosphoric acid were added to a final pH of the mixture of about 5. The phases thus obtained were separated. 25 L of ethyl acetate were added to the aqueous phase and the resulting phases were separated. The two organic phases thus obtained were pooled and mixed with a volume of diethylamine so that a final pH of the mixture of about 8.5 was obtained. About 45 L of ethyl acetate were vacuum distilled without exceeding the temperature of 45 °C and two successive series of loading 10 L of ethyl acetate and vacuum distillation of about 10 L of ethyl acetate were performed. Finally, 10 L of ethyl acetate were added and the resulting mixture was slowly cooled to the temperature of about 0 °C. The resulting mixture was maintained at said temperature for 2 hours and the solid present was filtered and washed two times with 12 L of ethyl acetate. The white solid thus obtained yielded after being dried 8.60 kg (yield 79.0%) corresponding to the diethylamine salt of 3a- tetrahydropyranyloxy-6a-ethyl-7a-hydroxy-5p-cholanic acid. The purity of the product was analyzed by means of HPLC to obtain 99.55%. Figure 4 shows the XRPD of the obtained product and Figure 5 shows its DSC. If desired, the diethylamine salt of 3a- tetrahydropyranyloxy-6a-ethyl-7a-hydroxy-5p-cholanic acid can be recrystallized from ethyl acetate (4 volumes of solvent per mass of salt to recrystallize) . A typical example of purification by recrystallization allows obtaining the product with a recrystallization yield of about 95% and a product purity as analized by means of HPLC of 99.87%.

Example 10. Synthesis of the amorphous form of obeticholic acid (compound of formula (IV) )

20 g (39.6 mmol) of 3a-tetrahydropyranyloxy-6a-ethyl-7a- hydroxy-5 b-cholanic acid were mixed with 200 mL of acetone. 5 mL (60 mmol, 1.51 molar equivalents) of a 12N aqueous solution of HC1 were added maintaining the temperature of between 20 and 25°C. The solution thus obtained was maintained under stirring at a temperature of between 20 and 25°C for 8 hours. Once maintenance ended, the solvent is vacuum-distilled without exceeding the temperature of 35°C, and 150 mL of ethyl acetate and a 2N aqueous solution of NaOH are added to a pH value of about 12, maintaining the temperature of about 20°C. The organic phase is separated and the aqueous phase is acidified at the temperature of about 20°C to a pH value of 2-3 by means of the addition of a 12N aqueous solution of HC1. The resulting mixture is filtered to obtain, after being dried, 14.7 g (yield 88%) of a white solid corresponding to obeticholic acid. The purity of the product was analyzed by means of HPLC to obtain 99.58%. Figure 1 shows the XRPD of the obtained product and Figure 2 shows its DSC.

Example 11. Synthesis of the amorphous form of obeticholic acid (compound of formula (IV) )

46.2 g (79.9 mmol) of the diethylamine salt of 3a- tetrahydropyranyloxy-6a-ethyl-7a-hydroxy-5p-cholanic acid were mixed with 462 mL of methanol. 90 mL (180 mmol, 2.25 molar equivalents) of a 2N aqueous solution of HC1 were added maintaining the temperature of between 20 and 25°C. The solution thus obtained was maintained under stirring at a temperature of between 20 and 25°C for 8 hours. Once maintenance ended, the pH of the mixture was adjusted to a value of about 12 by addition of 100 mL of a 30% aqueous solution of NaOH. The mixture thus obtained was heated to about 50 °C and was maintained at said temperature for 5 hours . Once maintenance ended, the solvent was distilled under reduced pressure and water was added to a total volume of about 1 L. The mixture thus obtained was filtered and the filtered solution was slowly added to a 12 N HC1 aqueous solution maintaining the temperature between 20 and 25 °C. The final pH of the resulting mixture as about 1. Once the addition had ended, the resulting mixture was stirred at a temperature of between 20 and 25 °C for 15 minutes. The resulting solid was filtered and dried in an air oven at a temperature of about 50 °C. 28.64 g (yield 85.2%) of a white solid corresponding to obeticholic acid were thus obtained. The purity of the product was analyzed by means of HPLC to obtain 99.81%. The XRPD and DSC of the obtained product correspond to those of amorphous obeticholic acid according to Figure 1 and Figure 2.